From ec941cfdc50c3802af3329da0fd6f42653610af9 Mon Sep 17 00:00:00 2001 From: Daveed Date: Fri, 21 Feb 2025 16:08:02 -0500 Subject: [PATCH] reacting to custom input better --- src/components/checkout/CheckoutModal.tsx | 9 ++++++--- src/config.ts | 4 ---- src/pages/products/[slug].astro | 3 +-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/components/checkout/CheckoutModal.tsx b/src/components/checkout/CheckoutModal.tsx index c13bce6..b56a333 100644 --- a/src/components/checkout/CheckoutModal.tsx +++ b/src/components/checkout/CheckoutModal.tsx @@ -117,7 +117,8 @@ const CheckoutModal: FC = ({ prices, product }: Props) => {

Available Options
- Pick an option xor chose your own via tip input + Pick an option to see more details +

@@ -152,7 +153,7 @@ const CheckoutModal: FC = ({ prices, product }: Props) => {
- + = ({ prices, product }: Props) => {
-

{selectedPrice?.Description || ' '}

+

+ {total > 0 ? selectedPrice?.Description || 'Continue using custom price' : 'Please select a price and quantity to continue'} +

diff --git a/src/config.ts b/src/config.ts index aa9adc8..b2219b7 100644 --- a/src/config.ts +++ b/src/config.ts @@ -11,10 +11,6 @@ const { POSTHOG_ID, } = import.meta.env; -console.info('Loading Astro environment variables:', - { BASE_URL, PUBLIC_STRIPE_PUBLISHABLE_KEY, STRAPI_URL, STORE_SLUG, COLOR_PRIMARY, COLOR_ACCENT, POSTHOG_ID } -); - /** * @type {{[string]: string}} Global Configuration attributes for the markket instance */ diff --git a/src/pages/products/[slug].astro b/src/pages/products/[slug].astro index 513050d..760d15f 100644 --- a/src/pages/products/[slug].astro +++ b/src/pages/products/[slug].astro @@ -54,9 +54,8 @@ const selectedImage = ---