Skip to content

Commit

Permalink
fix: invalid condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Pader committed Oct 11, 2023
1 parent 82d772c commit abb7ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/EmojiUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ function suggestEmojis(text, lang, limit = CONST.AUTO_COMPLETE_SUGGESTER.MAX_AMO
* @returns {Number}
*/
const getPreferredSkinToneIndex = (val) => {
if (!_.isNull(val) && _.isUndefined(val) && Number.isInteger(Number(val))) {
if (!_.isNull(val) && !_.isUndefined(val) && Number.isInteger(Number(val))) {
return val;
}

Expand Down

0 comments on commit abb7ee2

Please sign in to comment.