diff options
Diffstat (limited to 'frontend/src/components/modals/Modal.js')
| -rw-r--r-- | frontend/src/components/modals/Modal.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/components/modals/Modal.js b/frontend/src/components/modals/Modal.js index ec6080f2..dd8cea8e 100644 --- a/frontend/src/components/modals/Modal.js +++ b/frontend/src/components/modals/Modal.js @@ -50,8 +50,10 @@ class Modal extends React.Component { } componentDidUpdate() { - this.visible = this.props.show - this.openOrCloseModal() + if (this.visible !== this.props.show) { + this.visible = this.props.show + this.openOrCloseModal() + } } onSubmit() { |
