Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Aug 10, 2024
1 parent 69207f0 commit 8c2554c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/makeBadgeString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { badges } from '../constants';
export function makeBadgeString(user: MUser, badgeIDs: number[] | null | undefined) {
const method = user.getRandomizeMethod();
const rawBadges: string[] = (badgeIDs ?? []).map(num => badges[num]);
rawBadges.push(method!.emoji);
rawBadges.push(method?.emoji ?? '');
return rawBadges.join(' ').trim();
}

0 comments on commit 8c2554c

Please sign in to comment.