From ae0a35df2b2934c517954d2a73af4cc6e1734e30 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 4 Nov 2021 15:17:57 -0300
Subject: async, onInput, and some fixes

---
 packages/anastasis-webui/src/pages/home/index.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

diff --git a/packages/anastasis-webui/src/pages/home/index.tsx b/packages/anastasis-webui/src/pages/home/index.tsx
index 415cf6e98..346738c26 100644
--- a/packages/anastasis-webui/src/pages/home/index.tsx
+++ b/packages/anastasis-webui/src/pages/home/index.tsx
@@ -96,12 +96,12 @@ export function AnastasisClientFrame(props: AnastasisClientFrameProps): VNode {
     return <p>Fatal: Reducer must be in context.</p>;
   }
   const next = async (): Promise<void> => {
-    return new Promise((res, rej) => {
+    return new Promise(async (res, rej) => {
       try {
         if (props.onNext) {
-          props.onNext();
+          await props.onNext();
         } else {
-          reducer.transition("next", {});
+          await reducer.transition("next", {});
         }
         res()
       } catch {
-- 
cgit v1.2.3

