diff --git a/components/LoadModal.jsx b/components/LoadModal.jsx index ca1045c..bd66aee 100644 --- a/components/LoadModal.jsx +++ b/components/LoadModal.jsx @@ -44,6 +44,10 @@ export default ({ modalIsOpen, closeModal }) => { maxAge: 315360000 }) setState({ palettes: newPalettes }) + + if (!newPalettes.length) { + closeModal() + } } return (