From 5b28313afdfc1678fc993733c922ae8d4afa261a Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Sat, 8 Jan 2022 16:44:09 +0700 Subject: [PATCH] fixed modal provider --- src/store/modal/ModalStore.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modal/ModalStore.tsx b/src/store/modal/ModalStore.tsx index 8d52170d..784a1b44 100644 --- a/src/store/modal/ModalStore.tsx +++ b/src/store/modal/ModalStore.tsx @@ -11,8 +11,8 @@ export class ModalStore { } setCurrent = (current: T, props: DialogContentProps[T]) => { - this.props = props; - this.current = current ?? {}; + this.props = current ? props : {}; + this.current = current; }; hide = () => {