mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-08 14:35:49 +01:00
🐛 Fix celcius to farenheit
This commit is contained in:
@@ -160,7 +160,7 @@ export default function WeatherComponent(props: any) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
function usePerferedUnit(value: number): string {
|
function usePerferedUnit(value: number): string {
|
||||||
return isFahrenheit ? `${(value * (9 / 5)).toFixed(1)}°F` : `${value.toFixed(1)}°C`;
|
return isFahrenheit ? `${(value * (9 / 5) + 32).toFixed(1)}°F` : `${value.toFixed(1)}°C`;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Group p="sm" spacing="xs" direction="column">
|
<Group p="sm" spacing="xs" direction="column">
|
||||||
|
|||||||
Reference in New Issue
Block a user