Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
itailiors committed Aug 7, 2024
1 parent d2e62df commit ee34862
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 5 additions & 7 deletions src/Angor/Client/Pages/Settings.razor
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
<option value="BTC">BTC</option>
<option value="USD">USD</option>
<option value="GBP">GBP</option>
<!-- Add more options here if needed -->
<!-- more fiat options -->
</select>
</div>
</div>
Expand Down Expand Up @@ -426,7 +426,7 @@
private SettingsInfo settingsInfo;

protected override async Task OnInitializedAsync()
protected override Task OnInitializedAsync()
{
_networkService.AddSettingsIfNotExist();

Expand All @@ -435,15 +435,13 @@
networkType = _networkConfiguration.GetNetwork().Name;

_networkService.OnStatusChanged += UpdateUI;

// Await the asynchronous operation

currencyDisplaySetting = _clientStorage.GetCurrencyDisplaySetting();

if (!networkType.ToLower().Contains("test"))
selectedNetwork = "mainnet";

// Use await for the base method call
await base.OnInitializedAsync();

return base.OnInitializedAsync();
}

private void UpdateUI()
Expand Down
4 changes: 0 additions & 4 deletions src/Angor/Client/Pages/Wallet.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
@using System.Text.Json
@using System.Globalization



@inject HttpClient _httpClient;
@inject IClientStorage storage;
@inject ICacheStorage _cacheStorage;
Expand Down Expand Up @@ -267,15 +265,13 @@ else
<div class="mb-4 me-4">
<p class="text-sm opacity-8 mb-0" data-cy="confirmed-balance">Unconfirmed balance</p>
<h6 class="mb-0">@Money.Satoshis(accountBalanceInfo.TotalUnconfirmedBalance).ToUnit(MoneyUnit.BTC) @network.CoinTicker</h6>
<h6>@btcBalanceInUsd</h6>
</div>
}
@if (accountBalanceInfo.TotalBalanceReserved > 0)
{
<div class="mb-4 me-4">
<p class="text-sm opacity-8 mb-0">Reserved balance</p>
<h6 class="mb-0">@Money.Satoshis(accountBalanceInfo.TotalBalanceReserved).ToUnit(MoneyUnit.BTC) @network.CoinTicker</h6>
<h6>@btcBalanceInUsd</h6>
</div>
}
</div>
Expand Down

0 comments on commit ee34862

Please sign in to comment.