diff --git a/src/libs/UserUtils.js b/src/libs/UserUtils.js index dffb5580f0d3..918c2c9bbdc6 100644 --- a/src/libs/UserUtils.js +++ b/src/libs/UserUtils.js @@ -88,8 +88,8 @@ function getDefaultAvatar(accountID = -1) { } // There are 24 possible default avatars, so we choose which one this user has based - // on a simple hash of their login. Note that Avatar count starts at 1. - const accountIDHashBucket = hashText(accountID.toString(), CONST.DEFAULT_AVATAR_COUNT) + 1; + // on a simple modulo operation of their login number. Note that Avatar count starts at 1. + const accountIDHashBucket = (accountID % CONST.DEFAULT_AVATAR_COUNT) + 1; return defaultAvatars[`Avatar${accountIDHashBucket}`]; }