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 GitHub
parent d512954fe6
commit a5cd9b5a33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1470,11 +1470,12 @@ 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;
}
// Can proceed
}
Err(e) => {
eprintln!("An error occurred -> {:?}", e);
}