Skip to content

Commit

Permalink
Sentry time mismatch fix (#4726)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem <Artem Slugin>
  • Loading branch information
attemka authored Aug 23, 2023
1 parent fcbe556 commit 13837bc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/atlas/src/hooks/useTimeMismatchWarning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ export const useTimeMismatchWarning = () => {
description: `Set your system time to automatic matching your actual timezone to prevent errors with transactions.`,
iconType: 'warning',
})
SentryLogger.error(
`Time mismatch detected. Server time: ${serverTime}, client time: ${clientTime}`,
'UseTimeMismatchWarning'
)
SentryLogger.error(`Time mismatch detected`, 'UseTimeMismatchWarning', ``, {
details: {
serverTime,
clientTime,
},
})
}
})
.catch(() => {
Expand Down

0 comments on commit 13837bc

Please sign in to comment.