Skip to content

Commit 017ea1e

Browse files
committed
fix: only show ymirsites email warning if no domain was configured
1 parent a8090e5 commit 017ea1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Project/DeployProjectCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function perform(InputInterface $input, OutputStyle $output)
106106
);
107107
}
108108

109-
if ($this->apiClient->getEmailIdentities($this->cliConfiguration->getActiveTeamId())->isEmpty()) {
109+
if (!array_key_exists('domain', (array) $this->projectConfiguration->getEnvironment($environment))) {
110110
$output->newLine();
111111
$output->writeln(sprintf('<comment>Note:</comment> You cannot send emails using the "<comment>ymirsites.com</comment>" domain. Please use the "<comment>%s</comment>" command to add an email address or domain for sending emails.', CreateEmailIdentityCommand::NAME));
112112
}

0 commit comments

Comments
 (0)