@threedddplus/logoeditor 0.0.207 → 0.0.209

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.
@@ -1765,6 +1765,11 @@ var SnapToCenter = function SnapToCenter(props) {
1765
1765
  };
1766
1766
 
1767
1767
  function CustomToast(type, message, toastId, style) {
1768
+ var _C = toast.isActive(toastId);
1769
+ console.log(_C);
1770
+ if (_C) {
1771
+ return React.createElement(React.Fragment, null);
1772
+ }
1768
1773
  switch (type) {
1769
1774
  case 'info':
1770
1775
  return toast.info(toastGen({
@@ -1859,7 +1864,7 @@ var toastMessages =
1859
1864
  return CustomToast('info', 'Please select the IMAGE / TEXT to delete', 14);
1860
1865
  },
1861
1866
  pleaseSelectTheImageDulpicate: function pleaseSelectTheImageDulpicate() {
1862
- return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate', 15);
1867
+ return CustomToast('info', 'Please select the IMAGE / TEXT to duplicate', 150);
1863
1868
  },
1864
1869
  applyLogoColorNotAvailable: function applyLogoColorNotAvailable(decType) {
1865
1870
  return CustomToast('error', "A few of the colors associated with decoration \"" + decType + "\" are not supported. Please use the \"Edit\" option to update them with supported colors and proceed!", 16);