Skip to content

Commit 70c717b

Browse files
Copilotdangershony
andauthored
Refresh invested balance in header after investment completes (#746)
Agent-Logs-Url: https://github.com/block-core/angor/sessions/1e848dd7-9798-4cca-806c-9432af1dc449 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dangershony <7487930+dangershony@users.noreply.github.com>
1 parent ac3995e commit 70c717b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/design/App/UI/Sections/FindProjects/InvestPageViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ private async Task PayWithWalletAsync()
661661
}
662662

663663
_logger.LogInformation("Investment flow completed — advancing to Success screen");
664+
_ = _walletContext.RefreshBalanceAsync(walletId);
664665
CurrentScreen = InvestScreen.Success;
665666
}
666667
catch (Exception ex)
@@ -827,6 +828,7 @@ private async Task PayViaInvoiceAsync()
827828
}
828829
}
829830

831+
_ = _walletContext.RefreshBalanceAsync(walletId);
830832
CurrentScreen = InvestScreen.Success;
831833
}
832834
catch (OperationCanceledException)

0 commit comments

Comments
 (0)