Print problem with double click on butotn

Description

Hi, i have a problem. I have simple app. I have event on button and i would like validate textarea input when i click on button. But my app print only after double click on button. First click prints the same value but when second click value its change. How i fix this please ?

What MCU/Processor/Board and compiler are you using?

ESP32
Arduino IDE
TFT SPI display

What LVGL version are you using?

LVGL 8.3.3

What do you want to achieve?

Fix the issue

The code block(s) should be formatted like:

void ta_event_show(lv_event_t *e) {
  lv_event_code_t code = lv_event_get_code(e);
  lv_obj_t *ebutton = lv_event_get_target(e);
  lv_obj_t *entryinput = (lv_obj_t *)lv_event_get_user_data(e);
  String entrycode;

  if (code == LV_EVENT_CLICKED) {
    entrycode = String(lv_textarea_get_text(entryinput));
    if (entrycode == String(1234)) {
      printf("\nOK");
    } else {
      printf("\nNG");
    }
  }
}