From 9e1fbed9b97282f5124e28a19be9a8bfd403e40a 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 31943d1f3e..d947803dd6 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 = () => {