From 93fbcc33f5fcbf14b3c1889b18781965e06d769a Mon Sep 17 00:00:00 2001 From: pedrofp4444 Date: Wed, 20 Dec 2023 11:32:25 +0000 Subject: [PATCH] fix: modal appearance --- apps/app/pages/index.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/app/pages/index.tsx b/apps/app/pages/index.tsx index 963b57ad..00e7a81e 100644 --- a/apps/app/pages/index.tsx +++ b/apps/app/pages/index.tsx @@ -62,6 +62,7 @@ function Dashboard() { info: response.fail, }, ]); + openModal(); notifyInfo("Enviado com successo!"); }) .catch((error) => { @@ -82,6 +83,7 @@ function Dashboard() { info: response.fail, }, ]); + openModal(); notifyInfo("Enviado com successo!"); }) .catch((error) => { @@ -115,10 +117,7 @@ function Dashboard() { title="Tens a certeza que queres notificar?" cancelText="Não" okText="Sim" - onConfirm={(_) => { - notify_signup_ninjas(); - openModal(); - }} + onConfirm={(_) => notify_signup_ninjas()} > @@ -132,10 +131,7 @@ function Dashboard() { title="Tens a certeza que queres notificar?" cancelText="Não" okText="Sim" - onConfirm={(_) => { - notify_selected_ninjas(); - openModal(); - }} + onConfirm={(_) => notify_selected_ninjas()} >