From c5f1279d4b00c3d3d19ecb42e9f26c393bcc9530 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Tue, 15 Oct 2024 21:22:23 -0400 Subject: [PATCH] fix lint / TS errors in create-notification.ts --- packages/sw/src/scripts/create-notification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index f99a714cfb..9c56e338c7 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -251,9 +251,9 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif }]; case 'edited': - return [t('_notification.edited', { name: getUserName(data.body.user) }), { + return [i18n.ts._notification.edited, { body: data.body.note.text ?? '', - icon: data.body.user.avatarUrl, + icon: data.body.user.avatarUrl ?? undefined, badge: iconUrl('messages'), data, }];