@capillarytech/creatives-library 7.10.57 → 7.10.58

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.10.57",
4
+ "version": "7.10.58",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -12,6 +12,7 @@
12
12
  },
13
13
  "license": "LicenseRef-LICENSE",
14
14
  "dependencies": {
15
+ "@babel/polyfill": "7.4.3",
15
16
  "@bugsnag/js": "^7.2.1",
16
17
  "@bugsnag/plugin-react": "^7.2.1",
17
18
  "@capillarytech/cap-ui-utils": "1.4.2",
@@ -292,6 +292,8 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
292
292
  </div>
293
293
  );
294
294
 
295
+ const whatsappUpdatedAccountName = whatsappAccountName || _.get(templateData, 'versions.base.content.whatsapp.accountName', '');
296
+
295
297
  return (
296
298
  <CapRow>
297
299
  {this.props.showCount && (channel && channel.toLowerCase() !== FACEBOOK) && <CapColumn span={16}>
@@ -692,7 +694,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
692
694
  alt={formatMessage(messages.previewGenerated)}
693
695
  />
694
696
  <CapLabel className='whatsapp-brand-name'>
695
- {whatsappAccountName || ''}
697
+ {whatsappUpdatedAccountName || ''}
696
698
  </CapLabel>
697
699
  <div className='msg-container whatsapp-message-container'>
698
700
  <div className='message-pop align-left' style={whatsappSectionStyle}>