We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73447e5 commit 858fba2Copy full SHA for 858fba2
1 file changed
src/ui/dashpay/profile_screen.rs
@@ -325,7 +325,13 @@ impl ProfileScreen {
325
);
326
// No cached profile exists — queue an automatic network fetch
327
// so the user doesn't have to manually click "Refresh".
328
- self.pending_action = Some(Box::new(self.trigger_load_profile()));
+ if self.pending_action.is_none() {
329
+ // Mark that we've already attempted to load a profile to
330
+ // avoid repeatedly queuing the same work if this method
331
+ // is called again before the pending action executes.
332
+ self.profile_load_attempted = true;
333
+ self.pending_action = Some(Box::new(self.trigger_load_profile()));
334
+ }
335
}
336
Err(e) => {
337
tracing::error!("Error loading profile from database: {}", e);
0 commit comments