From 0fd5c41d826d70bb34f99f7e647a214924314471 Mon Sep 17 00:00:00 2001 From: Khafra Date: Sun, 2 Feb 2025 13:54:36 -0500 Subject: [PATCH] fixup --- src/Login.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Login.ts b/src/Login.ts index 0e5bd03e2..022cff0c7 100644 --- a/src/Login.ts +++ b/src/Login.ts @@ -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') }), @@ -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') {