sfc-utils 1.4.17 → 1.4.18

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.
@@ -63,7 +63,7 @@ const TopperImage = ({ wcm, alt, ratio, wcmData, containerCssList = [], imageCss
63
63
  let photoRatio = "56.25%"; // Default to 16/9
64
64
  let photoFraction = 0.5625;
65
65
  let photoViewport = "56.25vw";
66
- let fullPath = `https://s.hdnux.com/photos/0/0/0/${wcm}/0/`;
66
+ let fullPath = `https://s.hdnux.com/photos/0/0/0/${wcm}/1/`;
67
67
  if (!ratio) {
68
68
  let matchedPhoto = wcmData.nodes.find((item) => {
69
69
  return (item.photo.wcmid).toString() === (wcm).toString()
@@ -108,7 +108,9 @@ const TopperImage = ({ wcm, alt, ratio, wcmData, containerCssList = [], imageCss
108
108
 
109
109
  return (
110
110
  <div className={containerCssList.join(' ')} ref={picRef}>
111
- <ImageHTML fullPath={fullPath} imageRez={imageRez} alt={alt} imageCssList={imageCssList} />
111
+ {imageRez > 0 &&
112
+ <ImageHTML fullPath={fullPath} imageRez={imageRez} alt={alt} imageCssList={imageCssList} />
113
+ }
112
114
  </div>
113
115
  )
114
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.17",
3
+ "version": "1.4.18",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",