diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/notifications.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/notifications.ts b/lib/notifications.ts index 08d96507..8891d875 100644 --- a/lib/notifications.ts +++ b/lib/notifications.ts @@ -17,8 +17,9 @@ if (config.vapid) { export const notify = async (p, user, withdrawal) => { emit(user.id, "payment", p); - const { username } = user; + let { username } = user; const { paymentReceived } = t(user); + username = username.replace(/\s/g, ""); try { if (user.verified && user.notify) { |
