@capillarytech/creatives-library 7.12.65 → 7.12.66
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/package.json
CHANGED
|
@@ -871,13 +871,7 @@ export const Whatsapp = (props) => {
|
|
|
871
871
|
});
|
|
872
872
|
|
|
873
873
|
const actionCallback = ({ errorMessage }) => {
|
|
874
|
-
|
|
875
|
-
if (host === HOST_KARIX) {
|
|
876
|
-
error = JSON.parse(errorMessage.errorMessage).error.message || 'Error';
|
|
877
|
-
} else {
|
|
878
|
-
error = errorMessage?.message || errorMessage;
|
|
879
|
-
}
|
|
880
|
-
if (!error) {
|
|
874
|
+
if (!errorMessage) {
|
|
881
875
|
CapNotification.success({
|
|
882
876
|
message: formatMessage(messages.whatsappCreateNotification, {
|
|
883
877
|
name: templateName,
|
|
@@ -886,7 +880,7 @@ export const Whatsapp = (props) => {
|
|
|
886
880
|
actions.clearCreateResponse();
|
|
887
881
|
} else {
|
|
888
882
|
CapNotification.error({
|
|
889
|
-
message:
|
|
883
|
+
message: JSON.stringify(errorMessage),
|
|
890
884
|
});
|
|
891
885
|
}
|
|
892
886
|
};
|