@capillarytech/creatives-library 8.0.65-alpha.2 → 8.0.65-alpha.4

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": "8.0.65-alpha.2",
4
+ "version": "8.0.65-alpha.4",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -73,7 +73,8 @@ export const Zalo = (props) => {
73
73
  hostName: zaloHostName = '',
74
74
  eventContextTags,
75
75
  } = props || {};
76
- const {hostName = zaloHostName || ''} = senderDetails;
76
+ // Since zalo supports now multiple accounts, we need to get the hostname from the selected account or passed props.
77
+ const hostName = zaloHostName || selectedZaloAccount?.hostName ;
77
78
  const { formatMessage } = intl;
78
79
  const [oa_id, setOaId] = useState('');
79
80
  const [token, setToken] = useState('');