aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/hooks
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-11-04 14:35:38 -0300
committerSebastian <sebasjm@gmail.com>2022-11-04 14:35:38 -0300
commit1bfaf997c3f898ee7a5e8a19bbaf4475cce94f0f (patch)
treec7033d629be295c86d3457e7d493dc433b67323a /packages/demobank-ui/src/hooks
parentd2e2c0198f88a3a6c756d7f3b1c3e4cabb833483 (diff)
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
Diffstat (limited to 'packages/demobank-ui/src/hooks')
-rw-r--r--packages/demobank-ui/src/hooks/index.ts2
1 files changed, 0 insertions, 2 deletions
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);