1
0
Fork 0

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;
}
// 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;