fix: show files option in linking menu even if not entitled

This commit is contained in:
Mo
2022-11-13 15:10:57 -06:00
parent 2b76d48392
commit f42657fa9e
10 changed files with 216 additions and 183 deletions
@@ -188,7 +188,7 @@ const FileDragNDropProvider = ({ application, children, featuresController, file
resetState()
if (!featuresController.hasFiles) {
if (!featuresController.entitledToFiles) {
premiumModal.activate('Files')
return
}
@@ -217,7 +217,7 @@ const FileDragNDropProvider = ({ application, children, featuresController, file
dragCounter.current = 0
}
},
[application, featuresController.hasFiles, filesController, premiumModal, resetState],
[application, featuresController.entitledToFiles, filesController, premiumModal, resetState],
)
useEffect(() => {