From 7f378d234b1e28435e0a50c0e95f2d429ee47d58 Mon Sep 17 00:00:00 2001 From: David Ball Date: Thu, 11 Jul 2024 05:49:40 -0400 Subject: [PATCH] fix: Correct invalid props on StarRating and fallback to 0 on no price in product template. --- src/components/StarRating.astro | 2 +- src/pages/[productLookup].astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/StarRating.astro b/src/components/StarRating.astro index d7d8789..fd66b85 100644 --- a/src/components/StarRating.astro +++ b/src/components/StarRating.astro @@ -2,7 +2,7 @@ interface Props { value: number; max: number; - backgroundColor: string; + overlayColor: string; } const { value = 0, max = 5, overlayColor = '#fff' } = Astro.props; diff --git a/src/pages/[productLookup].astro b/src/pages/[productLookup].astro index c446e87..e34ccd2 100644 --- a/src/pages/[productLookup].astro +++ b/src/pages/[productLookup].astro @@ -65,7 +65,7 @@ const category = categories.find(c => c.id == product.categoryId)!;

{product?.productDetails?.description && product?.productDetails?.description}

- {formatAsCurrency(product?.productDetails?.price)} On Amazon + {formatAsCurrency(product?.productDetails?.price||0)} On Amazon