This commit is contained in:
2024-01-23 18:25:57 +01:00
Unverified
parent 0d80beccd7
commit c08ac3b542
3 changed files with 2 additions and 4 deletions

View File

@@ -170,7 +170,7 @@ else
StateHasChanged();
if (_authLoaded)
if (_authLoaded && _claims is not null)
{
APIResponse<IEnumerable<AccountResponse>> dataResponse = await _accountsService.GetAccounts(id: _claims.AccountId);
if (dataResponse.Status == ResponseStatus.Ok && dataResponse.Data.Count() == 1)

View File

@@ -123,7 +123,7 @@ else
StateHasChanged();
if (_authLoaded)
if (_authLoaded && _claims is not null)
{
APIResponse<decimal> balanceResponse = await _balanceService.GetBalance();
if (balanceResponse.Status == ResponseStatus.Ok)

View File

@@ -31,12 +31,10 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SecureBank.API.Encryption\SecureBank.API.Encryption.csproj" />
<ProjectReference Include="..\SecureBank.API\SecureBank.API.Authentication\SecureBank.API.Authentication.csproj" />
<ProjectReference Include="..\SecureBank.API\SecureBank.API.Controllers\SecureBank.API.Controllers.csproj" />
<ProjectReference Include="..\SecureBank.API\SecureBank.API.Encryption\SecureBank.API.Encryption.csproj" />
<ProjectReference Include="..\SecureBank.API\SecureBank.API.Services\SecureBank.API.Services.csproj" />
<ProjectReference Include="..\SecureBank.API\SecureBank.API.Token\SecureBank.API.Authentication.csproj" />
<ProjectReference Include="..\SecureBank.Authentication\SecureBank.Authentication.csproj" />
<ProjectReference Include="..\SecureBank.Common\SecureBank.Common.csproj" />
<ProjectReference Include="..\SecureBank.Database\SecureBank.Database.csproj" />