We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2fe117 commit 07b49e1Copy full SHA for 07b49e1
src/utils/getAvatarVisualNumber.ts
@@ -11,9 +11,6 @@ export function getAvatarVisualNumber({
11
const sum = digitGroups.reduce((accu, current) => {
12
return accu + Number(current);
13
}, 0);
14
- const chosenImageIndex = sum % 14;
15
- if (chosenImageIndex === 0) {
16
- return 'profile-avatar-bg-1';
17
- }
+ const chosenImageIndex = (sum % 13) + 1;
18
return `profile-avatar-bg-${chosenImageIndex}`;
19
}
0 commit comments