Skip to content

Commit

Permalink
fix preferredEmojiSkinTone
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Mar 8, 2023
1 parent f4ffc7c commit 29d271c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Onyx.connect({
callback: (val) => {
// the preferred skin tone is sometimes still "default", although it
// was changed that "default" has become -1.
if (Number.isInteger(Number(val))) {
if (!_.isNull(val) && Number.isInteger(Number(val))) {
preferredSkinTone = val;
} else {
preferredSkinTone = -1;
Expand Down
1 change: 1 addition & 0 deletions src/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function () {
},
[ONYXKEYS.IS_SIDEBAR_LOADED]: false,
[ONYXKEYS.SHOULD_SHOW_COMPOSE_INPUT]: true,
[ONYXKEYS.PREFERRED_EMOJI_SKIN_TONE]: -1,
},
});

Expand Down

0 comments on commit 29d271c

Please sign in to comment.