From f3b5ccc5fe5eb5d70152b82caa8c352103ca1654 Mon Sep 17 00:00:00 2001 From: Nikita Kolmogorov Date: Fri, 28 Oct 2022 12:03:27 -0700 Subject: [PATCH] fix axios --- src/helpers/startPolling.ts | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers/startPolling.ts b/src/helpers/startPolling.ts index 2482d60..c4e38cd 100644 --- a/src/helpers/startPolling.ts +++ b/src/helpers/startPolling.ts @@ -18,7 +18,7 @@ async function pollNotifications( let next = '' const notifications = [] as Notification[] do { - const data = await fetchNotifications(next, farcasterAddress) + const { data } = await fetchNotifications(next, farcasterAddress) notifications.push(...Object.values(data.result.notifications || {})) if (currentNotificationId) { next = data.meta?.next || '' diff --git a/tsconfig.json b/tsconfig.json index 420cb95..6bade7a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,8 @@ }, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "strict": true + "strict": true, + "allowSyntheticDefaultImports": true }, "include": ["src/**/*"] }