From 2be9b877953fbb56c02f18b5984262cd8195c965 Mon Sep 17 00:00:00 2001 From: Paoda Date: Fri, 8 Feb 2019 19:44:07 -0600 Subject: [PATCH] Fixed React Modal.js bug --- src/components/Modal.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/Modal.js b/src/components/Modal.js index 5a8a51b..2de49f5 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -16,7 +16,10 @@ export default class Modal extends React.Component { } render() { - console.log("Modal Created"); + // Probably should remove once done with debugging + if (this.state.style.display === "flex") console.log("Modal Show") + else console.log("Modal Hide"); + return(