From d75263168b41065e2d0b3bc70221feb6b0584147 Mon Sep 17 00:00:00 2001 From: Ed Eykholt <ed.eykholt@gmail.com> Date: Mon, 12 Aug 2024 19:11:29 -0700 Subject: [PATCH] Fixed selection of identifier from the profile picker --- KeriAuth.BrowserExtension/UI/Layouts/MainLayout.razor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KeriAuth.BrowserExtension/UI/Layouts/MainLayout.razor b/KeriAuth.BrowserExtension/UI/Layouts/MainLayout.razor index 420960a..ac64114 100644 --- a/KeriAuth.BrowserExtension/UI/Layouts/MainLayout.razor +++ b/KeriAuth.BrowserExtension/UI/Layouts/MainLayout.razor @@ -92,7 +92,7 @@ <MudList Clickable="true" @bind-SelectedValue="ActiveAid" Class="bt-sad-4;" Style="padding: 0px"> @foreach (var identifierHeadline in IdentifiersHeadlines) { - <MudListItem Value="@identifierHeadline.Prefix" OnClick="async () => await SetActiveAid()" Style="@IdentifiersPage.cardClass((string)ActiveAid, identifierHeadline.Prefix)" Class="bt-sad-5"> + <MudListItem Value="@identifierHeadline.Prefix" OnClick="async () => await SetActiveAid(identifierHeadline.Prefix)" Style="@IdentifiersPage.cardClass((string)ActiveAid, identifierHeadline.Prefix)" Class="bt-sad-5"> <MudStack Row="true"> <MudIcon Icon=@identifierHeadline.Identicon ViewBox="0 0 100 100" Style="border-style:solid; border-color:black; border-width:2px; border-radius:50%; width:35px; height:35px; overflow:hidden; margin-top: 3px;" /> <div class="bt-sad-2" style="display:contents;"> @@ -503,13 +503,13 @@ // Other side-effects will be reactive. See IObserver<StateService> } - async Task SetActiveAid() + async Task SetActiveAid(string prefix) { IsProfilePanelOpen = false; var pref = await preferencesService.GetPreferences(); pref = pref with { - SelectedAid = (string)ActiveAid + SelectedAid = prefix }; await preferencesService.SetPreferences(pref); // Other side-effects will be reactive. See IObserver<Preferences>