From ef789e0ed90d4b3e78ff30c29dc633d226177493 Mon Sep 17 00:00:00 2001 From: Pierre Bertet Date: Tue, 17 Dec 2024 23:34:19 +0000 Subject: [PATCH] Stake screen: do not scroll on tab change --- frontend/app/src/screens/StakeScreen/StakeScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/src/screens/StakeScreen/StakeScreen.tsx b/frontend/app/src/screens/StakeScreen/StakeScreen.tsx index a7f87543..aedcf5bb 100644 --- a/frontend/app/src/screens/StakeScreen/StakeScreen.tsx +++ b/frontend/app/src/screens/StakeScreen/StakeScreen.tsx @@ -77,7 +77,7 @@ export function StakeScreen() { }))} selected={TABS.findIndex(({ id }) => id === action)} onSelect={(index) => { - router.push(`/stake/${TABS[index].id}`); + router.push(`/stake/${TABS[index].id}`, { scroll: false }); }} />