From 50ffa5e5a2fb44b4e2fd91ec87e4cc13f711a53c Mon Sep 17 00:00:00 2001 From: Mykola Mozghovyi Date: Thu, 5 Dec 2024 19:55:16 +0200 Subject: [PATCH] + bi-arrow-clockwise --- My1kWordsEe/Components/Pages/WordPage.razor | 28 ++++++++++++--------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/My1kWordsEe/Components/Pages/WordPage.razor b/My1kWordsEe/Components/Pages/WordPage.razor index a5026e3..db92663 100644 --- a/My1kWordsEe/Components/Pages/WordPage.razor +++ b/My1kWordsEe/Components/Pages/WordPage.razor @@ -46,8 +46,8 @@ } WordMetadata = EeWord.ValidateWord() - ? await ResolveSample() - : Result.Failure("Invalid word"); + ? await ResolveSample() + : Result.Failure("Invalid word"); await base.OnParametersSetAsync(); } @@ -101,9 +101,9 @@ }; var confirmation = await DeleteSampleDialog.ShowAsync( - title: "Are you sure you want to delete this?", - message1: "This will delete the record. Once deleted can not be rolled back.", - message2: "Do you want to proceed?", options); + title: "Are you sure you want to delete this?", + message1: "This will delete the record. Once deleted can not be rolled back.", + message2: "Do you want to proceed?", options); if (confirmation) { @@ -153,9 +153,11 @@ private bool IsLoggedIn => User?.Identity?.IsAuthenticated ?? false; - private bool IsFavorite() => IsDataLoadedOk && IsLoggedIn && Favorites.HasValue && Favorites.Value.IsSuccess && Favorites.Value.Value.Words.ContainsKey(EeWord.ToLower()); + private bool IsFavorite() => IsDataLoadedOk && IsLoggedIn && Favorites.HasValue && Favorites.Value.IsSuccess && + Favorites.Value.Value.Words.ContainsKey(EeWord.ToLower()); - private bool IsFavorite(SampleSentence sentence) => IsDataLoadedOk && IsLoggedIn && Favorites.HasValue && Favorites.Value.IsSuccess && Favorites.Value.Value.Sentences.ContainsKey(sentence.EeSentence.ToLower()); + private bool IsFavorite(SampleSentence sentence) => IsDataLoadedOk && IsLoggedIn && Favorites.HasValue && + Favorites.Value.IsSuccess && Favorites.Value.Value.Sentences.ContainsKey(sentence.EeSentence.ToLower()); }