From 558fa49d80f9b50ee438749281b2119e058c7a04 Mon Sep 17 00:00:00 2001 From: Melisa Anabella Rossi Date: Tue, 11 Jun 2024 15:54:31 -0300 Subject: [PATCH] fix empty deploy contributable names (#3126) --- .../Modals/DeployModal/DeployToWorld/DeployToWorld.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Modals/DeployModal/DeployToWorld/DeployToWorld.tsx b/src/components/Modals/DeployModal/DeployToWorld/DeployToWorld.tsx index f87f135da..67bc89f23 100644 --- a/src/components/Modals/DeployModal/DeployToWorld/DeployToWorld.tsx +++ b/src/components/Modals/DeployModal/DeployToWorld/DeployToWorld.tsx @@ -60,7 +60,7 @@ 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) { @@ -68,7 +68,7 @@ export default function DeployToWorld({ 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) {