bug fix: update default unit in ChangePreferences component from celsius to metric
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { useState } from "react";
|
|||||||
import { myToast } from "../utils/toastify";
|
import { myToast } from "../utils/toastify";
|
||||||
|
|
||||||
const getInitialTheme = () => localStorage.getItem("theme") || "light";
|
const getInitialTheme = () => localStorage.getItem("theme") || "light";
|
||||||
const getInitialUnit = () => localStorage.getItem("unit") || "celsius";
|
const getInitialUnit = () => localStorage.getItem("unit") || "metric";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
|
Reference in New Issue
Block a user