@embedreach/components 0.2.37 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -81911,7 +81911,7 @@ const getAutomationSteps = ({
|
|
|
81911
81911
|
const smsChannelSender = smsChannelSenders.find(
|
|
81912
81912
|
(sender) => sender.channelSender.id === communicationGroup.smsChannelSenderId
|
|
81913
81913
|
);
|
|
81914
|
-
if (!smsChannelSender || smsChannelSender.smsApplication?.status !== SmsRegistrationApplicationStatus.APPROVED) {
|
|
81914
|
+
if (!smsChannelSender || smsChannelSender.smsApplication && smsChannelSender.smsApplication?.status !== SmsRegistrationApplicationStatus.APPROVED) {
|
|
81915
81915
|
return "You cannot send this yet if you have selected a text channel and don't have an approved SMS application. Please save as draft and try again later.";
|
|
81916
81916
|
}
|
|
81917
81917
|
return void 0;
|
|
@@ -81920,7 +81920,7 @@ const getAutomationSteps = ({
|
|
|
81920
81920
|
const smsChannelSender = smsChannelSenders.find(
|
|
81921
81921
|
(sender) => sender.channelSender.id === communicationGroup.smsChannelSenderId
|
|
81922
81922
|
);
|
|
81923
|
-
if (smsChannelSender && smsChannelSender.smsApplication?.status !== SmsRegistrationApplicationStatus.APPROVED) {
|
|
81923
|
+
if (smsChannelSender && smsChannelSender.smsApplication && smsChannelSender.smsApplication?.status !== SmsRegistrationApplicationStatus.APPROVED) {
|
|
81924
81924
|
return true;
|
|
81925
81925
|
}
|
|
81926
81926
|
if (communicationGroup.smsChannelSenderId === null || communicationGroup.emailChannelSenderId === null) {
|