From 2f262ea4b89b1de9fed810924fce434a901bf064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Comerci?= <45410089+ncomerci@users.noreply.github.com> Date: Mon, 27 Nov 2023 15:35:54 -0300 Subject: [PATCH] fix: error report bug (#1419) --- src/back/routes/user.ts | 2 +- src/components/Notifications/NotificationsFeed.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/back/routes/user.ts b/src/back/routes/user.ts index 4a72abb6a..bd1be7419 100644 --- a/src/back/routes/user.ts +++ b/src/back/routes/user.ts @@ -191,7 +191,7 @@ async function isValidated(req: Request) { return await UserModel.isValidated(address, new Set(accounts)) } catch (error) { const message = 'Error while fetching validation data' - ErrorService.report(message, { error }) + ErrorService.report(message, { error: `${error}` }) throw new Error(`${message}. ${error}`) } } diff --git a/src/components/Notifications/NotificationsFeed.tsx b/src/components/Notifications/NotificationsFeed.tsx index 8f0d9d59e..300577aab 100644 --- a/src/components/Notifications/NotificationsFeed.tsx +++ b/src/components/Notifications/NotificationsFeed.tsx @@ -166,7 +166,8 @@ export default function NotificationsFeed({ const filteredNotifications = userNotifications?.slice(0, notificationsPerPage) const hasNotifications = filteredNotifications && filteredNotifications.length > 0 - const showNotifications = isSubscribed && !isLoadingNotifications && hasNotifications && !isSettingsOpened + const showNotifications = + isSubscribed && !isLoadingNotifications && hasNotifications && !isSettingsOpened && !showDiscordConnect const showLoadMoreButton = filteredNotifications?.length !== userNotifications?.length const unsubscribedKey = isSubscribing ? 'subscribing' : 'unsubscribed' const isLoading =