From 4a3f0210bf54837bd39a9a80bcece531b15b3990 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 2 Jun 2026 20:04:24 +0200 Subject: [PATCH] Fix reader desktop navbar settings default marker --- src/base/components/buttons/SelectButton.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/base/components/buttons/SelectButton.tsx b/src/base/components/buttons/SelectButton.tsx index 884bcbb4..fc269ebf 100644 --- a/src/base/components/buttons/SelectButton.tsx +++ b/src/base/components/buttons/SelectButton.tsx @@ -172,11 +172,16 @@ const SelectButtonCollapsible = {(() => { - const currentValue = (value as Value) ?? defaultValue; + const isDefault = value === undefined && defaultValue !== undefined; + if (!isDefault) { + assertIsDefined(value); - assertIsDefined(currentValue); + const { title } = valueToDisplayData[value as Value]; - const { title } = valueToDisplayData[currentValue]; + return typeof title === 'string' ? title : t(title); + } + + const { title } = valueToDisplayData[defaultValue]; return (