Skip to content

Commit

Permalink
Merge branch 'ui-update/update-delegation' into ui-update/remove-dele…
Browse files Browse the repository at this point in the history
…gation
  • Loading branch information
soerenbf committed Oct 29, 2024
2 parents b7f1c60 + 05304ed commit f5f4e08
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f5f4e08

Please sign in to comment.