From 0d166acfd992c29169758d2d462ba59baff7b26a Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 23 Jun 2023 15:40:38 -0700 Subject: [PATCH] refactor: :recycle: simplify null check --- packages/client/src/components/MkModalWindow.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/client/src/components/MkModalWindow.vue b/packages/client/src/components/MkModalWindow.vue index 31943d1f3..d947803dd 100644 --- a/packages/client/src/components/MkModalWindow.vue +++ b/packages/client/src/components/MkModalWindow.vue @@ -93,9 +93,7 @@ let rootEl = $shallowRef(); let headerEl = $shallowRef(); const close = (ev) => { - if (modal != null) { - modal.close(ev); - } + modal?.close(ev); }; const onBgClick = () => {