Skip to content

Commit

Permalink
Trigger correct submit page text
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Oct 29, 2024
1 parent 54a882a commit 05304ed
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 05304ed

Please sign in to comment.