Skip to content

Commit

Permalink
fix: I18n unable to get value for name (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
xireiki authored Dec 1, 2024
1 parent 5661cdd commit 92a2e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const ConfigForm: ParentComponent<{
<For each={modes()}>
{(name) => (
<option selected={name === configsData()?.mode} value={name}>
{t(name as keyof Dict)}
{t(name as keyof Dict) ?? name}
</option>
)}
</For>
Expand Down

0 comments on commit 92a2e39

Please sign in to comment.