Merge pull request #332 from MichaelDvP/dev_

fix #329, numberformat in Edge, Chrome
This commit is contained in:
Proddy
2022-02-05 12:51:14 +01:00
committed by GitHub

View File

@@ -251,7 +251,7 @@ const DashboardData: FC = () => {
<ValidatedTextField <ValidatedTextField
name="v" name="v"
label={deviceValue.n} label={deviceValue.n}
value={deviceValue.u ? Intl.NumberFormat().format(deviceValue.v) : deviceValue.v} value={deviceValue.u ? numberValue(deviceValue.v) : deviceValue.v}
autoFocus autoFocus
sx={{ width: '30ch' }} sx={{ width: '30ch' }}
type={deviceValue.u ? 'number' : 'text'} type={deviceValue.u ? 'number' : 'text'}