diff --git a/web/src/components/things/IosAppDetailedInfo.astro b/web/src/components/things/IosAppDetailedInfo.astro index f68be95..3884098 100644 --- a/web/src/components/things/IosAppDetailedInfo.astro +++ b/web/src/components/things/IosAppDetailedInfo.astro @@ -10,7 +10,7 @@ interface Props { url: string; }; -const { iosData, url } = Astro.props; +const { iosData } = Astro.props; const bytesToMb = (bytes: number) => (bytes / 1024 / 1024).toFixed(2); @@ -75,7 +75,7 @@ const putCommaInNumber = (num: number | any) => {
  • Device Models Supported - {iosData.supportedDevices.length} + {iosData.supportedDevices ? iosData.supportedDevices.length : 'Unknown'}
  • @@ -95,10 +95,12 @@ const putCommaInNumber = (num: number | any) => { Age Advisory {iosData.contentAdvisoryRating} + {iosData.languageCodesISO2A && (
  • Supported Languages {iosData.languageCodesISO2A.length}
  • + )}
  • Developer {iosData.sellerName} @@ -109,14 +111,16 @@ const putCommaInNumber = (num: number | any) => {
  • -

    Screenshots

    - + {iosData.screenshotUrls && ( +

    Screenshots

    + + )} diff --git a/web/src/pages/[...listing].astro b/web/src/pages/[...listing].astro index 64337d3..ca0bdc9 100644 --- a/web/src/pages/[...listing].astro +++ b/web/src/pages/[...listing].astro @@ -338,7 +338,7 @@ const getApiEndpoint = () => { )} - { iosData && ( + { iosData && typeof iosData === 'object' && Object.keys(iosData).length > 0 && (

    {name} iOS App