Skip to content

Commit

Permalink
chore: register federation config load errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tvolk131 committed Oct 12, 2024
1 parent a4a1444 commit 2ad21bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/routes/bitcoin_wallet/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@ impl Page {
}
}

if let Some(Loadable::Loaded(nip_87_data)) = &mut self.nip_87_data_or {
for (_, nip_87_invite_codes) in nip_87_data.values_mut() {
for nip_87_invite_code in nip_87_invite_codes {
if nip_87_invite_code.invite_code == invite_code
&& nip_87_invite_code.loadable_federation_config
== Loadable::Loading
{
nip_87_invite_code.loadable_federation_config = Loadable::Failed;
}
}
}
}

// TODO: Show toast instead of returning an empty task.
Task::none()
}
Expand Down

0 comments on commit 2ad21bd

Please sign in to comment.