refactor: ♻️ simplify null check

This commit is contained in:
ThatOneCalculator 2023-06-23 15:40:38 -07:00
parent 087591e62d
commit 9e1fbed9b9
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -93,9 +93,7 @@ let rootEl = $shallowRef<HTMLElement>();
let headerEl = $shallowRef<HTMLElement>(); let headerEl = $shallowRef<HTMLElement>();
const close = (ev) => { const close = (ev) => {
if (modal != null) { modal?.close(ev);
modal.close(ev);
}
}; };
const onBgClick = () => { const onBgClick = () => {