Skip to content

Commit

Permalink
fix: Allow publishing world when only owning ens names
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Oct 4, 2023
1 parent 0acf628 commit 36e1230
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function DeployToWorld({
const currenWorldLabel = world && ensList.find(ens => ens.subdomain === world)?.name

useEffect(() => {
if (ensList.length === 0) {
if (ensList.length === 0 && externalNames.length === 0) {
setView(DeployToWorldView.EMPTY)
analytics.track('Publish to World step', { step: DeployToWorldView.EMPTY })
} else if (!currentDeployment.current) {
Expand Down Expand Up @@ -355,19 +355,7 @@ export default function DeployToWorld({
<>
<div className={styles.modalHeader}>
<h3>{t('deployment_modal.deploy_world.title')}</h3>
<span>
{t('deployment_modal.deploy_world.description')}
<Popup
className="modal-tooltip"
content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
position="bottom center"
trigger={<InfoIcon className={styles.thumbnailInfo} />}
hideOnScroll={true}
on="hover"
inverted
basic
/>
</span>
<span>{t('deployment_modal.deploy_world.description')}</span>
</div>
<div className={styles.modalForm}>
{project?.thumbnail ? renderThumbnail() : null}
Expand Down

0 comments on commit 36e1230

Please sign in to comment.