diff options
author | Sebastian <sebasjm@gmail.com> | 2021-10-19 10:56:52 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-10-19 11:05:32 -0300 |
commit | 5883d42d800c7b444c59d626bcaa5abca7dc83d0 (patch) | |
tree | ac42ad7b9e26c4dd2145a31101305884906a543e /packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts | |
parent | 269022a526b670d602ca146f4df02850983bb72e (diff) | |
download | wallet-core-5883d42d800c7b444c59d626bcaa5abca7dc83d0.tar.xz |
add template from merchant backoffice
Diffstat (limited to 'packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts')
-rw-r--r-- | packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts index be68ba6eb..72424e82a 100644 --- a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts +++ b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts @@ -3,7 +3,7 @@ import { BackupStates, getBackupStartState, getRecoveryStartState, RecoveryState import { useState } from "preact/hooks"; const reducerBaseUrl = "http://localhost:5000/"; -let remoteReducer = true; +const remoteReducer = true; interface AnastasisState { reducerState: ReducerState | undefined; @@ -123,7 +123,7 @@ function storageSet(key: string, value: any): void { function restoreState(): any { let state: any; try { - let s = storageGet("anastasisReducerState"); + const s = storageGet("anastasisReducerState"); if (s === "undefined") { state = undefined; } else if (s) { |