From 05304ed3a9ada4c1773a9a5111eff56c730477c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Bruus=20Zeppelin?= Date: Tue, 29 Oct 2024 13:56:34 +0100 Subject: [PATCH] Trigger correct submit page text --- .../pages/EarningRewards/Delegator/TransactionFlow.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/browser-wallet/src/popup/popupX/pages/EarningRewards/Delegator/TransactionFlow.tsx b/packages/browser-wallet/src/popup/popupX/pages/EarningRewards/Delegator/TransactionFlow.tsx index ec03f74d..9b0c5d15 100644 --- a/packages/browser-wallet/src/popup/popupX/pages/EarningRewards/Delegator/TransactionFlow.tsx +++ b/packages/browser-wallet/src/popup/popupX/pages/EarningRewards/Delegator/TransactionFlow.tsx @@ -55,7 +55,10 @@ function DelegatorTransactionFlow({ existingValues, title }: Props) { nav(pathname, { replace: true, state: form }); // Override current router entry with stateful version - const submitDelegatorState: DelegationResultLocationState = { payload, type: 'register' }; + const submitDelegatorState: DelegationResultLocationState = { + payload, + type: existingValues !== undefined ? 'change' : 'register', + }; nav(absoluteRoutes.settings.earn.delegator.submit.path, { state: submitDelegatorState }); }, [pathname, existingValues, setNoChangesNotice]