-
Notifications
You must be signed in to change notification settings - Fork 13
fix: identity & token screen safety and validation #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
869006c
7ca8660
edbcb2a
840f277
b26fa7e
8a3beb0
213b9b0
12dbeb8
111ff0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -319,14 +319,16 @@ impl ScreenLike for WithdrawalScreen { | |
|
|
||
| fn refresh(&mut self) { | ||
| // Refresh the identity because there might be new keys | ||
| self.identity = self | ||
| if let Some(refreshed) = self | ||
| .app_context | ||
| .load_local_qualified_identities() | ||
| .unwrap() | ||
| .unwrap_or_default() | ||
| .into_iter() | ||
|
Comment on lines
+322
to
326
|
||
| .find(|identity| identity.identity.id() == self.identity.identity.id()) | ||
| .unwrap(); | ||
| self.max_amount = self.identity.identity.balance(); | ||
| { | ||
| self.identity = refreshed; | ||
| self.max_amount = self.identity.identity.balance(); | ||
| } | ||
| } | ||
|
|
||
| /// Renders the UI components for the withdrawal screen | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.