aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-11-04 15:17:57 -0300
committerSebastian <sebasjm@gmail.com>2021-11-04 15:18:34 -0300
commitae0a35df2b2934c517954d2a73af4cc6e1734e30 (patch)
tree973b8525a6e7641048a7e31451c7a9cf3274726e /packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx
parent5c6f38091068d67f88edda1d776e3c5f86c1a94e (diff)
downloadwallet-core-ae0a35df2b2934c517954d2a73af4cc6e1734e30.tar.xz
async, onInput, and some fixes
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx')
-rw-r--r--packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx
index 4ab0e6a9b..0e43f982d 100644
--- a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx
@@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/camelcase */
-import { BackupStates, ContinentInfo, RecoveryStates } from "anastasis-core";
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
import { useAnastasisContext } from "../../context/anastasis";
@@ -9,7 +8,8 @@ export function ContinentSelectionScreen(): VNode {
const reducer = useAnastasisContext()
//FIXME: remove this when #7056 is fixed
- const [countryCode, setCountryCode] = useState("")
+ const countryFromReducer = (reducer?.currentReducerState as any).selected_country || ""
+ const [countryCode, setCountryCode] = useState( countryFromReducer )
if (!reducer || !reducer.currentReducerState || !("continents" in reducer.currentReducerState)) {
return <div />