Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ display en sentence #117

Merged
merged 2 commits into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions My1kWordsEe/Components/Pages/FavoritesPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
private async Task AddToFavorites(dynamic favorite)
{
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 43 in My1kWordsEe/Components/Pages/FavoritesPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await AddToFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand All @@ -49,8 +50,9 @@
private async Task RemoveFromFavorites(dynamic favorite)
{
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 53 in My1kWordsEe/Components/Pages/FavoritesPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await RemoveFromFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand Down
4 changes: 4 additions & 0 deletions My1kWordsEe/Components/Pages/Games/ListenToEeGamePage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
{
<li class="list-group-item list-group-item-success">
@checkResult.EeSentence
<br />
(@checkResult.EnSentence)
</li>
}
else
Expand All @@ -97,6 +99,8 @@
</li>
<li class="list-group-item list-group-item-success">
@checkResult.EeSentence
<br />
(@checkResult.EnSentence)
</li>
<li class="list-group-item list-group-item-info">
@checkResult.EnComment
Expand Down
2 changes: 2 additions & 0 deletions My1kWordsEe/Components/Pages/WordPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
var commonSample = this.EnsureWordCommand.Invoke(EeWord);
if (IsLoggedIn)
{
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 60 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
var favorites = GetFavoritesQuery.Invoke(user.Id);
await Task.WhenAll(commonSample, favorites);

Expand All @@ -73,8 +73,9 @@
private async Task AddToFavorites(dynamic favorite)
{
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 76 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await AddToFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand All @@ -82,9 +83,10 @@
private async Task RemoveFromFavorites(dynamic favorite)
{
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 86 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await RemoveFromFavoritesCommand.Invoke(user.Id, favorite);
PreloadService.Hide();
await Task.Delay(300);
StateHasChanged();
}

Expand Down
Loading