File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ class SearchPage extends Component {
128
128
} = getSearchOptions (
129
129
this . props . reports ,
130
130
this . props . personalDetails ,
131
- this . state . searchValue ,
131
+ this . state . searchValue . trim ( ) ,
132
132
this . props . betas ,
133
133
) ;
134
134
this . setState ( {
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ class EmojiPickerMenu extends Component {
274
274
* @param {String } searchTerm
275
275
*/
276
276
filterEmojis ( searchTerm ) {
277
- const normalizedSearchTerm = searchTerm . toLowerCase ( ) ;
277
+ const normalizedSearchTerm = searchTerm . toLowerCase ( ) . trim ( ) ;
278
278
if ( normalizedSearchTerm === '' ) {
279
279
// There are no headers when searching, so we need to re-make them sticky when there is no search term
280
280
this . setState ( {
Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ class ProfilePage extends Component {
193
193
&& this . props . myPersonalDetails . pronouns === this . state . selfSelectedPronouns ) ;
194
194
195
195
// Disables button if none of the form values have changed
196
- const isButtonDisabled = ( this . props . myPersonalDetails . firstName === this . state . firstName )
197
- && ( this . props . myPersonalDetails . lastName === this . state . lastName )
196
+ const isButtonDisabled = ( this . props . myPersonalDetails . firstName === this . state . firstName . trim ( ) )
197
+ && ( this . props . myPersonalDetails . lastName === this . state . lastName . trim ( ) )
198
198
&& ( this . props . myPersonalDetails . timezone . selected === this . state . selectedTimezone )
199
199
&& ( this . props . myPersonalDetails . timezone . automatic === this . state . isAutomaticTimezone )
200
200
&& arePronounsUnchanged ;
You can’t perform that action at this time.
0 commit comments