@capillarytech/creatives-library 7.17.184 → 7.17.185

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.184",
4
+ "version": "7.17.185",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -137,7 +137,9 @@ export const Viber = (props) => {
137
137
  updateButtonUrl(url);
138
138
  setIsCtaSaved(true);
139
139
  setButtonType(button?.text ? VIBER_BUTTON_TYPES.CTA : NONE);
140
- setCtadata({ buttonText: button?.text, buttonURL: button?.url });
140
+ if (!isEmpty(button)) {
141
+ setCtadata({ buttonText: button?.text, buttonURL: button?.url });
142
+ }
141
143
  if (!isEmpty(image)) {
142
144
  setTemplateMediaType(VIBER_MEDIA_TYPES.IMAGE);
143
145
  updateImageSrc(image?.url);