- fix bug with multiple modal appearances

This commit is contained in:
Amruth Pillai
2020-07-06 16:07:32 +05:30
parent dbb005d26c
commit d02fad1164
3 changed files with 16 additions and 16 deletions

View File

@ -24,6 +24,10 @@ const CreateResumeModal = () => {
const { emitter, events } = useContext(ModalContext);
const { createResume, updateResume } = useContext(DatabaseContext);
useEffect(() => {
console.log("called", open);
}, []);
useEffect(() => {
const unbind = emitter.on(events.CREATE_RESUME_MODAL, (data) => {
setOpen(true);