From e8db2775896795524f509c524cd90c1b8d04bde0 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 21 Sep 2021 02:59:07 +0900 Subject: [PATCH] refactor --- src/client/sw/create-notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/sw/create-notification.ts b/src/client/sw/create-notification.ts index 4bfe48852f..1ec684df8b 100644 --- a/src/client/sw/create-notification.ts +++ b/src/client/sw/create-notification.ts @@ -41,7 +41,7 @@ async function composeNotification(data // users/showの型定義をswos.apiへ当てはめるのが困難なのでapiFetch.requestを直接使用 const account = await getAccountFromId(data.userId); if (!account) return null; - const userDetail = apiFetch.request('users/show', { userId: data.body.userId }, account?.token); + const userDetail = apiFetch.request('users/show', { userId: data.body.userId }, account.token); return [t('_notification.youWereFollowed'), { body: getUserName(data.body.user), icon: data.body.user.avatarUrl,