Skip to content

Commit

Permalink
reset error map upon refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Minigrim0 committed Oct 22, 2024
1 parent ee40132 commit 69641f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tui/src/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub fn refresh_sites(component: &mut TransportComponent) {

// Reset the error message by default
component.departures.error = None;
component.departures.site_errors.clear();

let sites = match rt.block_on(get_sites()) {
Ok(currency) => currency,
Expand Down

0 comments on commit 69641f7

Please sign in to comment.