Skip to content

Commit

Permalink
temp fix toggling reactions is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Mar 5, 2023
1 parent 8bc100b commit e9ba4f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ Onyx.connect({
let preferredSkinTone;
Onyx.connect({
key: ONYXKEYS.PREFERRED_EMOJI_SKIN_TONE,
callback: val => preferredSkinTone = val,
callback: (val) => {
// TODO: the preferred skin tone is sometimes still default, although it
// was changed that "default" has become -1.
if (Number.isInteger(Number(val))) {
preferredSkinTone = val;
} else {
preferredSkinTone = -1;
}
},
});

const allReports = {};
Expand Down

0 comments on commit e9ba4f5

Please sign in to comment.