Skip to content

Commit

Permalink
Claim flow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michielpost committed Mar 19, 2024
1 parent 2814867 commit caad0fb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/ArweaveBlazor/ArweaveBlazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.3" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions src/aoWebWallet/Pages/Wallets.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
BindingContext.CheckHasArConnectExtension();
await BindingContext.CheckHasArConnectExtension();

await BindingContext.LoadWalletList();
await BindingContext.LoadTokenList();
Expand All @@ -25,12 +25,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
await base.OnAfterRenderAsync(firstRender);
}

protected override async Task LoadDataAsync()
{
//protected override async Task LoadDataAsync()
//{


//BindingContext.LoadStats();
}
// //BindingContext.LoadStats();
//}

}
}
4 changes: 2 additions & 2 deletions src/aoWebWallet/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public async Task Claim2()
if (UserSettings != null)
{
var tx = await Claim(2);
if (tx != null)
if (tx != null && !string.IsNullOrEmpty(tx.Id))
{
UserSettings.Claimed2 = true;
await storageService.SaveUserSettings(UserSettings);
Expand All @@ -459,7 +459,7 @@ public async Task Claim3()
if (UserSettings != null)
{
var tx = await Claim(3);
if (tx != null)
if (tx != null && !string.IsNullOrEmpty(tx.Id))
{
UserSettings.Claimed3 = true;
await storageService.SaveUserSettings(UserSettings);
Expand Down
4 changes: 2 additions & 2 deletions src/aoWebWallet/aoWebWallet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
<PackageReference Include="BlazorWasmPreRendering.Build" Version="3.1.0-preview.4" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.3" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit caad0fb

Please sign in to comment.