From 745535988cb8693ac00455f1669ec87e4d67ef1f Mon Sep 17 00:00:00 2001 From: Alex Freska Date: Fri, 15 Dec 2023 10:24:36 -0500 Subject: [PATCH] fix: reset app settings to fix currency --- .changeset/tough-chairs-sit.md | 6 ++++++ libs/react-core/src/useAppSettings/index.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/tough-chairs-sit.md diff --git a/.changeset/tough-chairs-sit.md b/.changeset/tough-chairs-sit.md new file mode 100644 index 000000000..edd6bd42d --- /dev/null +++ b/.changeset/tough-chairs-sit.md @@ -0,0 +1,6 @@ +--- +'hostd': minor +'renterd': minor +--- + +Fixed an issue where currency was displayed with too many decimals. diff --git a/libs/react-core/src/useAppSettings/index.tsx b/libs/react-core/src/useAppSettings/index.tsx index e5a5380a4..d73cadf58 100644 --- a/libs/react-core/src/useAppSettings/index.tsx +++ b/libs/react-core/src/useAppSettings/index.tsx @@ -66,7 +66,7 @@ function useAppSettingsMain({ () => getDefaultSettings(overrideDefaultSettings), [overrideDefaultSettings] ) - const [_settings, _setSettings] = useLocalStorageState('v0/settings', { + const [_settings, _setSettings] = useLocalStorageState('v1/settings', { defaultValue: customDefaultSettings, }) // Merge in defaults incase new settings have been introduced