web: fix entering password closes publish dialog

This commit is contained in:
ammarahm-ed
2023-07-18 15:36:32 +05:00
committed by Abdullah Atta
parent cd7e0f5380
commit 6f51a98477

View File

@@ -48,8 +48,9 @@ function PublishView(props) {
const onKeyDown = useCallback(
(event) => {
if (event.keyCode === 27);
onClose(false);
if (event.keyCode === 27) {
onClose(false);
}
},
[onClose]
);