Skip to content

Commit

Permalink
Merge pull request #828 from BIDMCDigitalPsychiatry/gyroscope
Browse files Browse the repository at this point in the history
undefined error with back button
  • Loading branch information
sarithapillai8 authored Aug 14, 2024
2 parents dc0c1f9 + 385ae5f commit 60b8ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NotificationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default function NotificationPage({ participant, activityId, mode, tab, .
noBack={false}
tab={tab}
onComplete={(data) => {
setStaticData(data.static_data)
setStaticData(data?.static_data ?? {})
if (data === null) {
if (mode === null) window.location.href = "/#/"
else history.back()
Expand Down

0 comments on commit 60b8ea4

Please sign in to comment.