From 1bfaf997c3f898ee7a5e8a19bbaf4475cce94f0f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 4 Nov 2022 14:35:38 -0300 Subject: some fixes after update pageState reset info and error message input values should not be undefined, otherwise it gets uncontrolled (not controlled by preact) autofocus on captcha create a dependency from transactionList to balance, so tx list will be queried again if balance is updated update balance on any pageChange --- packages/demobank-ui/src/hooks/index.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'packages/demobank-ui/src/hooks/index.ts') diff --git a/packages/demobank-ui/src/hooks/index.ts b/packages/demobank-ui/src/hooks/index.ts index 2126cada5..94e66e5e3 100644 --- a/packages/demobank-ui/src/hooks/index.ts +++ b/packages/demobank-ui/src/hooks/index.ts @@ -112,8 +112,6 @@ export function useLocalStorage( value?: string | ((val?: string) => string | undefined), ) => { setStoredValue((p) => { - console.log("calling setStoredValue"); - console.log(window); const toStore = value instanceof Function ? value(p) : value; if (typeof window !== "undefined") if (!toStore) window.localStorage.removeItem(key); -- cgit v1.2.3