diff --git a/src/components/helpers/sharemodal/ShareModal.jsx b/src/components/helpers/sharemodal/ShareModal.jsx index c5ccf9d4..b301dbc8 100644 --- a/src/components/helpers/sharemodal/ShareModal.jsx +++ b/src/components/helpers/sharemodal/ShareModal.jsx @@ -17,8 +17,13 @@ export default function ShareModal({ modalClose, data }) { toast(getMessage('modals.share.copy_link')); }; - if (!data.data) { - data.data.name = 'this image'; + // look into what's wrong with this + try { + if (!data.data) { + data.data.name = 'this image'; + } + } catch (e) { + } return (