From 6d06b52605005f4d25381fc73383c3c9e48f20f8 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Sat, 11 Jun 2022 19:10:26 -0300
Subject: add testing to web components

---
 .../anastasis-webui/src/pages/home/SecretSelectionScreen.tsx   | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx')

diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx
index 7d92bcd2c..11271aaa5 100644
--- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx
@@ -22,7 +22,7 @@ import { useEffect, useState } from "preact/hooks";
 import { AsyncButton } from "../../components/AsyncButton.js";
 import { PhoneNumberInput } from "../../components/fields/NumberInput.js";
 import { useAnastasisContext } from "../../context/anastasis.js";
-import { AddingProviderScreen } from "./AddingProviderScreen.js";
+import AddingProviderScreen from "./AddingProviderScreen/index.js";
 import { AnastasisClientFrame } from "./index.js";
 
 export function SecretSelectionScreen(): VNode {
@@ -54,7 +54,9 @@ export function SecretSelectionScreen(): VNode {
   const recoveryDocument = reducer.currentReducerState.recovery_document;
 
   if (manageProvider) {
-    return <AddingProviderScreen onCancel={() => setManageProvider(false)} />;
+    return (
+      <AddingProviderScreen onCancel={async () => setManageProvider(false)} />
+    );
   }
 
   if (reducer.discoveryState.state === "none") {
@@ -220,7 +222,9 @@ export function OldSecretSelectionScreen(): VNode {
   }
 
   if (manageProvider) {
-    return <AddingProviderScreen onCancel={() => setManageProvider(false)} />;
+    return (
+      <AddingProviderScreen onCancel={async () => setManageProvider(false)} />
+    );
   }
 
   const providerInfo = provs[
-- 
cgit v1.2.3

