From 738fc3af1ebea5f9a7274f9fd924111ac9670aad Mon Sep 17 00:00:00 2001 From: Alex Kaminskii Date: Tue, 29 Nov 2022 17:23:53 +0100 Subject: [PATCH] refactoring(frontend): isModalActive getter on Modal state --- frontend/app/components/Modal/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/app/components/Modal/index.tsx b/frontend/app/components/Modal/index.tsx index 920cb2d14..860063c77 100644 --- a/frontend/app/components/Modal/index.tsx +++ b/frontend/app/components/Modal/index.tsx @@ -43,6 +43,7 @@ export class ModalProvider extends Component { state = { component: null, + get isModalActive() { return this.component !== null }, props: {}, showModal: this.showModal, hideModal: this.hideModal,