@openlettermarketing/olc-react-sdk 2.1.6 → 2.1.7

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.
@@ -1 +1 @@
1
- export const SDK_VERSION: "2.1.6";
1
+ export const SDK_VERSION: "2.1.7";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openlettermarketing/olc-react-sdk",
3
3
  "private": false,
4
- "version": "2.1.6",
4
+ "version": "2.1.7",
5
5
  "type": "module",
6
6
  "description": "Simplify template builder integration for any product.",
7
7
  "main": "build/index.js",
@@ -625,11 +625,11 @@ const CustomQRCode = {
625
625
  const handleEditQRCode = async (qrCode: any) => {
626
626
  setIsEditing(true);
627
627
  setSelectedQR(qrCode);
628
- dispatch(setQrUrl(qrCode.url));
629
- dispatch(setUtmSource(qrCode.utmSource || 'direct mail'));
630
- dispatch(setUtmMedium(qrCode.utmMedium || 'QR Code'));
631
- dispatch(setUtmCampaignName(qrCode.utm_campaign_name || ''));
632
- dispatch(setCustomUtms(qrCode.custom_utms || {}));
628
+ dispatch(setQrUrl(qrCode.url ?? ''));
629
+ dispatch(setUtmSource(qrCode.utm_source ?? ''));
630
+ dispatch(setUtmMedium(qrCode.utm_medium ?? ''));
631
+ dispatch(setUtmCampaignName(qrCode.utm_campaign_name ?? ''));
632
+ dispatch(setCustomUtms(qrCode.custom_utms ?? {}));
633
633
 
634
634
  handleDialogChange('qr-modal');
635
635
  setIsActionsOpen(null);
@@ -678,8 +678,8 @@ const CustomQRCode = {
678
678
  name: utmCampaignName,
679
679
  url: url,
680
680
  qrImagePath: uploadedFile,
681
- utm_source: utmSource,
682
- utm_medium: utmMedium,
681
+ utm_source: utmSource || null,
682
+ utm_medium: utmMedium || null,
683
683
  utm_campaign_name: utmCampaignName,
684
684
  custom_utms: customUtms,
685
685
  },
package/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = '2.1.6';
1
+ export const SDK_VERSION = '2.1.7';