Skip to content

Commit

Permalink
fix(ui) redirect to setup complete screen, after confirming backup codes
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <david.edler@canonical.com>
  • Loading branch information
edlerd committed Aug 30, 2024
1 parent ac9e531 commit ab6d6a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/pages/setup_backup_codes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ const SetupBackupCodes: NextPage = () => {
},
})
.then(() => {
setFlow(undefined); // Reset the flow to trigger refresh
if (methodValues.lookup_secret_confirm) {
window.location.href = "./setup_complete";
} else {
setFlow(undefined); // Reset the flow to trigger refresh
}
})
.catch(handleFlowError("settings", setFlow));
},
Expand Down

0 comments on commit ab6d6a6

Please sign in to comment.