Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #2

Open
furkanuzundev opened this issue Oct 27, 2022 · 0 comments
Open

test #2

furkanuzundev opened this issue Oct 27, 2022 · 0 comments

Comments

@furkanuzundev
Copy link
Owner

furkanuzundev commented Oct 27, 2022

diff --git a/src/pages/settings/Profile/ProfilePage.js b/src/pages/settings/Profile/ProfilePage.js
index e6ee4c6fe..d4cf4a1ed 100755
--- a/src/pages/settings/Profile/ProfilePage.js
+++ b/src/pages/settings/Profile/ProfilePage.js
@@ -236,6 +236,16 @@ class ProfilePage extends Component {
                     onSubmit={this.updatePersonalDetails}
                     submitButtonText={this.props.translate('common.save')}
                     enabledWhenOffline
+                    buttonDisabledComparedFields={
+                        {
+                            firstName: lodashGet(currentUserDetails, 'firstName', null),
+                            lastName: lodashGet(currentUserDetails, 'lastName', null),
+                            timezone: lodashGet(currentUserDetails, 'timezone.selected', null),
+                            isAutomaticTimezone: lodashGet(currentUserDetails, 'timezone.automatic', null),
+                            pronouns: pronounsPickerValue,
+                            ...(this.state.hasSelfSelectedPronouns && {selfSelectedPronoun: lodashGet(currentUserDetails, 'pronouns', null)}),
+                        }
+                    }
                 >
                     <OfflineWithFeedback
                         pendingAction={lodashGet(this.props.currentUserPersonalDetails, 'pendingFields.avatar', null)}
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

No branches or pull requests

1 participant