Skip to content

Commit

Permalink
fix(wallet): fix when ESC is pressed while adding contact. (#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Jul 14, 2021
2 parents bd017bc + 270be3a commit ffd7abf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,10 @@ impl<B: Backend> Component<B> for SendTab {
}

fn on_esc(&mut self, _: &mut AppState) {
self.edit_contact_mode = ContactInputMode::None;
self.send_input_mode = SendInputMode::None;
self.show_contacts = false;
self.show_edit_contact = false;
}

fn on_backspace(&mut self, _app_state: &mut AppState) {
Expand Down

0 comments on commit ffd7abf

Please sign in to comment.