Skip to content

Commit 356ac58

Browse files
committed
save correlations
1 parent 625503d commit 356ac58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/containers/Correlations/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ export default function Correlations({ coinsData }) {
139139
)
140140

141141
useEffect(() => {
142+
if (!router.isReady) return
143+
142144
if (!queryCoins?.length)
143145
router.replace(
144146
{
@@ -151,7 +153,7 @@ export default function Correlations({ coinsData }) {
151153
undefined,
152154
{ shallow: true }
153155
)
154-
}, [queryCoins, router])
156+
}, [queryCoins, router, router.isReady])
155157

156158
const dialogStore = Ariakit.useDialogStore()
157159

0 commit comments

Comments
 (0)