Fix wrong logic again

This commit is contained in:
Lim Chee Aun 2022-12-13 22:26:29 +08:00
parent e2346bc32a
commit fb6bca9016

View file

@ -237,7 +237,7 @@ export default ({
};
const confirmClose = () => {
if (canClose()) {
if (!canClose()) {
const yes = confirm(beforeUnloadCopy);
return yes;
}