Skip to content

Commit

Permalink
fix: error report bug (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncomerci authored Nov 27, 2023
1 parent bb30c11 commit 2f262ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/back/routes/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Notifications/NotificationsFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 2f262ea

Please sign in to comment.