From aa55cecb449cb40341cef0fdf4824cc6a666b8dd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Jun 2022 00:10:38 -0300 Subject: prettier --- packages/anastasis-webui/src/hooks/index.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/anastasis-webui/src/hooks/index.ts') diff --git a/packages/anastasis-webui/src/hooks/index.ts b/packages/anastasis-webui/src/hooks/index.ts index 9a1b50a11..9bc91f593 100644 --- a/packages/anastasis-webui/src/hooks/index.ts +++ b/packages/anastasis-webui/src/hooks/index.ts @@ -84,13 +84,13 @@ export function useLocalStorage( key: string, initialValue?: string, ): [string | undefined, StateUpdater] { - const [storedValue, setStoredValue] = useState((): - | string - | undefined => { - return typeof window !== "undefined" - ? window.localStorage.getItem(key) || initialValue - : initialValue; - }); + const [storedValue, setStoredValue] = useState( + (): string | undefined => { + return typeof window !== "undefined" + ? window.localStorage.getItem(key) || initialValue + : initialValue; + }, + ); const setValue = ( value?: string | ((val?: string) => string | undefined), -- cgit v1.2.3