@capillarytech/creatives-library 7.12.26 → 7.12.27

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.12.26",
4
+ "version": "7.12.27",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -32,11 +32,11 @@ export const CapActionButton = (props) => {
32
32
  const onButtonTextChange = (e) => {
33
33
  const val = e.target.value;
34
34
  setButtonText(val);
35
- updateButtonChange([{
35
+ updateButtonChange({
36
36
  type,
37
37
  text: val,
38
38
  url: buttonLink,
39
- }]);
39
+ });
40
40
  };
41
41
 
42
42
  const onButtonLinkChange = (e) => {
@@ -257,7 +257,8 @@ export const Rcs = (props) => {
257
257
  setEditFlow(true);
258
258
  if (rcsSuggestions.length > 0) {
259
259
  setSuggestions(rcsSuggestions);
260
- setButtonType(CTA);
260
+ setButtonType([CTA]);
261
+ setSuggestionError(false);
261
262
  }
262
263
 
263
264
  // for DLT Fallback message