bug fix: update default unit in ChangePreferences component from celsius to metric

This commit is contained in:
2025-08-02 02:28:36 +02:00
parent e22fa64e69
commit f4fffb73ff

View File

@@ -2,7 +2,7 @@ import React, { useState } from "react";
import { myToast } from "../utils/toastify";
const getInitialTheme = () => localStorage.getItem("theme") || "light";
const getInitialUnit = () => localStorage.getItem("unit") || "celsius";
const getInitialUnit = () => localStorage.getItem("unit") || "metric";
interface Props {
onClose: () => void;