chore(react/settings): port date settings

This commit is contained in:
Elian Doran
2025-08-14 23:50:08 +03:00
parent f524e99290
commit cce3d3bce8
3 changed files with 40 additions and 96 deletions

View File

@@ -65,7 +65,7 @@ function FormSelectGroup<T>({ values, keyProperty, titleProperty, currentValue }
return (
<option
value={item[keyProperty] as any}
selected={item[keyProperty] === currentValue}
selected={item[keyProperty] == currentValue} // triple equal is intentionally not used here, for comparisons with numeric values
>
{item[titleProperty ?? keyProperty] ?? item[keyProperty] as any}
</option>