Fix incorrect logic in cred update flow (#2956)

Incorrect logic in cred update meant that valid transactions would not be allowed to commit as a mistake in the UI flow.

This is a skill issue on my part.
This commit is contained in:
Firstyear 2024-08-08 12:02:02 +10:00 committed by William Brown
parent e2a563f309
commit eed7c07156

View file

@ -1470,10 +1470,11 @@ async fn credential_update_exec(
Ok(status) => {
if !status.can_commit {
display_warnings(&status.warnings);
// Reset the loop
println!("Changes have NOT been saved.");
continue;
}
// Reset the loop
println!("Changes have NOT been saved.");
continue;
// Can proceed
}
Err(e) => {
eprintln!("An error occurred -> {:?}", e);