From 9bc534071402e53a92415fb3d7e0a1e191e4f246 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 20 Dec 2022 13:27:14 +0800 Subject: [PATCH] Extra check on loading state before allow closing --- src/components/compose.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 73cf046b..9d82d6a5 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -289,6 +289,12 @@ function Compose({ return true; } + // check if loading + if (uiState !== 'loading') { + console.log('canClose', { uiState }); + return true; + } + console.log('canClose', { value, hasMediaAttachments, @@ -297,6 +303,7 @@ function Compose({ isSelf, hasOnlyAcct, sameWithSource, + uiState, }); return false;