mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-21 19:53:50 +01:00
refactor: ♻️ simplify null check
This commit is contained in:
parent
186744868a
commit
0d166acfd9
@ -93,9 +93,7 @@ let rootEl = $shallowRef<HTMLElement>();
|
||||
let headerEl = $shallowRef<HTMLElement>();
|
||||
|
||||
const close = (ev) => {
|
||||
if (modal != null) {
|
||||
modal.close(ev);
|
||||
}
|
||||
modal?.close(ev);
|
||||
};
|
||||
|
||||
const onBgClick = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user