Skip to content

Commit

Permalink
fix messaging 'test connection' workflow on initial save (#2751)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsachs authored Mar 6, 2023
1 parent 6ff436e commit e5edd4f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ const MailgunEmailConfiguration = () => {
) : null}
{configurationStep === "testConnection" ? (
<TestMessagingProviderConnectionButton
messagingDetails={messagingDetails}
messagingDetails={
messagingDetails || { service_type: messagingProviders.mailgun }
}
/>
) : null}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ const TwilioEmailConfiguration = () => {
) : null}
{configurationStep === "testConnection" ? (
<TestMessagingProviderConnectionButton
messagingDetails={messagingDetails}
messagingDetails={
messagingDetails || {
service_type: messagingProviders.twilio_email,
}
}
/>
) : null}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ const TwilioSMSConfiguration = () => {
</Stack>
{configurationStep === "testConnection" ? (
<TestMessagingProviderConnectionButton
messagingDetails={messagingDetails}
messagingDetails={
messagingDetails || { service_type: messagingProviders.twilio_text }
}
/>
) : null}
</Box>
Expand Down

0 comments on commit e5edd4f

Please sign in to comment.