Skip to content

Disable save button after saving self-select pronoun with a sapce#7218

Merged
Luke9389 merged 3 commits into
Expensify:mainfrom
sobitneupane:sn-self-select-pronoun
Jan 26, 2022
Merged

Disable save button after saving self-select pronoun with a sapce#7218
Luke9389 merged 3 commits into
Expensify:mainfrom
sobitneupane:sn-self-select-pronoun

Conversation

@sobitneupane

Copy link
Copy Markdown
Contributor

Details

After saving self-select pronoun with space, the Save button was not disabled. The issue is fixed by making proper change in the variable that determines whether the button should be disabled or not.

Fixed Issues

$ #7147

Tests

  • Go to Profile
  • Select "Self-select" in Preferred pronouns field.
  • Enter preferred pronoun with space at the end.
  • Click Save button.

QA Steps

  • Go to Profile
  • Select "Self-select" in Preferred pronouns field.
  • Enter preferred pronoun with space at the end.
  • Click Save button.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Screenshot from 2022-01-14 13-55-03

Mobile Web

Screenshot_20220114-140753_Chrome

Desktop

iOS

Android

Screenshot_20220114-135917_New Expensify

@sobitneupane sobitneupane requested a review from a team as a code owner January 14, 2022 08:25
@MelvinBot MelvinBot requested review from Luke9389 and parasharrajat and removed request for a team January 14, 2022 08:25

@parasharrajat parasharrajat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Could you please update the line 164 as well.

 const [hasFirstNameError, hasLastNameError, hasPronounError] = ValidationUtils.doesFailCharacterLimit(50, [this.state.firstName.trim(), this.state.lastName.trim(), this.state.pronouns.trim()]);

@sobitneupane

Copy link
Copy Markdown
Contributor Author

Looks good. Could you please update the line 164 as well.

 const [hasFirstNameError, hasLastNameError, hasPronounError] = ValidationUtils.doesFailCharacterLimit(50, [this.state.firstName.trim(), this.state.lastName.trim(), this.state.pronouns.trim()]);

@parasharrajat Updated.

@parasharrajat parasharrajat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

cc: @Luke9389

🎀 👀 🎀 C+ reviewed

@Luke9389 Luke9389 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Luke9389 Luke9389 merged commit e6e0fcd into Expensify:main Jan 26, 2022
@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

OSBotify commented Feb 1, 2022

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by @Luke9389 in version: 1.1.33-4 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify

OSBotify commented Feb 2, 2022

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by @sketchydroide in version: 1.1.34-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants