From f5051e189dae03f4bb53a47c509945e0e1fabfe8 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Tue, 17 May 2022 10:22:41 -0300 Subject: [PATCH] Chore: Evaluate ModalBlockView - TypeScript (#4124) --- app/views/ModalBlockView.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/views/ModalBlockView.tsx b/app/views/ModalBlockView.tsx index 1893b41fa..bb7f02344 100644 --- a/app/views/ModalBlockView.tsx +++ b/app/views/ModalBlockView.tsx @@ -171,16 +171,11 @@ class ModalBlockView extends React.Component void }) => { + cancel = async () => { const { data } = this.state; const { appId, viewId, view } = data; - // handle tablet case - if (closeModal) { - closeModal(); - } else { - Navigation.back(); - } + Navigation.back(); try { await triggerCancel({