Extra check on loading state before allow closing

This commit is contained in:
Lim Chee Aun 2022-12-20 13:27:14 +08:00
parent e274950324
commit 9bc5340714

View file

@ -289,6 +289,12 @@ function Compose({
return true; return true;
} }
// check if loading
if (uiState !== 'loading') {
console.log('canClose', { uiState });
return true;
}
console.log('canClose', { console.log('canClose', {
value, value,
hasMediaAttachments, hasMediaAttachments,
@ -297,6 +303,7 @@ function Compose({
isSelf, isSelf,
hasOnlyAcct, hasOnlyAcct,
sameWithSource, sameWithSource,
uiState,
}); });
return false; return false;