Skip to content

Commit f17bf3f

Browse files
committed
Fix timestamp format select label
1 parent caccb80 commit f17bf3f

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

apps/web/src/routes/_chat.settings.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ const MODEL_PROVIDER_SETTINGS: Array<{
5656
},
5757
] as const;
5858

59+
const TIMESTAMP_FORMAT_LABELS = {
60+
locale: "System default",
61+
"12-hour": "12-hour",
62+
"24-hour": "24-hour",
63+
} as const;
64+
5965
function getCustomModelsForProvider(
6066
settings: ReturnType<typeof useAppSettings>["settings"],
6167
provider: ProviderKind,
@@ -274,12 +280,12 @@ function SettingsRouteView() {
274280
}}
275281
>
276282
<SelectTrigger className="w-40" aria-label="Timestamp format">
277-
<SelectValue />
283+
<SelectValue>{TIMESTAMP_FORMAT_LABELS[settings.timestampFormat]}</SelectValue>
278284
</SelectTrigger>
279285
<SelectPopup align="end">
280-
<SelectItem value="locale">System default</SelectItem>
281-
<SelectItem value="12-hour">12-hour</SelectItem>
282-
<SelectItem value="24-hour">24-hour</SelectItem>
286+
<SelectItem value="locale">{TIMESTAMP_FORMAT_LABELS.locale}</SelectItem>
287+
<SelectItem value="12-hour">{TIMESTAMP_FORMAT_LABELS["12-hour"]}</SelectItem>
288+
<SelectItem value="24-hour">{TIMESTAMP_FORMAT_LABELS["24-hour"]}</SelectItem>
283289
</SelectPopup>
284290
</Select>
285291
</div>

0 commit comments

Comments
 (0)