Skip to content

Commit

Permalink
fix empty deploy contributable names (#3126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi authored Jun 11, 2024
1 parent 59d29f2 commit 558fa49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ export default function DeployToWorld({
const currenWorldLabel = world && ensList.find(ens => ens.subdomain === world)?.name

useEffect(() => {
if (ensList.length === 0 && externalNames.length === 0) {
if (ensList.length === 0 && externalNames.length === 0 && contributableNames.length === 0) {
setView(DeployToWorldView.EMPTY)
analytics.track('Publish to World step', { step: DeployToWorldView.EMPTY })
} else if (!currentDeployment.current) {
setView(DeployToWorldView.FORM)
analytics.track('Publish to World step', { step: DeployToWorldView.FORM })
onRecord()
}
}, [ensList, externalNames, onRecord, analytics])
}, [ensList, externalNames, contributableNames, onRecord, analytics])

useEffect(() => {
if (view === DeployToWorldView.FORM && loading && error) {
Expand Down

0 comments on commit 558fa49

Please sign in to comment.