Skip to content

Commit 952b5f7

Browse files
authored
fix: back button in reserves when history is undefined (#2429)
1 parent feff19a commit 952b5f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/reserve-overview/ReserveTopDetailsWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const ReserveTopDetailsWrapper = ({ underlyingAsset }: ReserveTopDetailsP
111111
}
112112
onClick={() => {
113113
// https://github.com/vercel/next.js/discussions/34980
114-
if (history.state.idx !== 0) router.back();
114+
if (!!history.state.idx) router.back();
115115
else router.push('/markets');
116116
}}
117117
sx={{ mr: 3, mb: downToSM ? '24px' : '0' }}

0 commit comments

Comments
 (0)