Skip to content

Commit

Permalink
Fix no winners service message
Browse files Browse the repository at this point in the history
  • Loading branch information
morethanwords committed Dec 20, 2023
1 parent 757e815 commit 215eebb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/wrappers/messageActionTextNewUnsafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ export default async function wrapMessageActionTextNewUnsafe(options: WrapMessag
};

if(!action.winners_count) {
setCombined('Giveaway.Results.NoWinners');
langPackKey = 'Giveaway.Results.NoWinners';
args = [action.unclaimed_count];
} else if(action.unclaimed_count) {
setCombined('Giveaway.Results.Unclaimed', [action.unclaimed_count]);
}
Expand Down

0 comments on commit 215eebb

Please sign in to comment.