Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Feb 2, 2025
1 parent 91366c6 commit 0fd5c41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ const messageSchema = z.preprocess(
name: z.string(),
internalName: z.string(),
endsAt: z.number().int()
}).array()
}).array(),
tips: z.number().int().nonnegative()
}),
/** Received after the *user* successfully redeems a consumable. */
z.object({ type: z.literal('thanks') }),
Expand Down Expand Up @@ -419,6 +420,8 @@ function handleWebSocket () {

Notification(message)
}

tips = data.tips
} else if (data.type === 'thanks') {
Alert(i18next.t('pseudoCoins.consumables.thanks'))
} else if (data.type === 'tip-backlog' || data.type === 'tips') {
Expand Down

0 comments on commit 0fd5c41

Please sign in to comment.