From a722836b7022ac5a90e365d7009000f4f31f7021 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 29 Sep 2023 13:07:21 -0700 Subject: [PATCH] fix undefined currency --- .../stripepayment/components/EventTypeAppCardInterface.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-store/stripepayment/components/EventTypeAppCardInterface.tsx b/packages/app-store/stripepayment/components/EventTypeAppCardInterface.tsx index 4249304d77..45b8282f99 100644 --- a/packages/app-store/stripepayment/components/EventTypeAppCardInterface.tsx +++ b/packages/app-store/stripepayment/components/EventTypeAppCardInterface.tsx @@ -22,7 +22,7 @@ const EventTypeAppCard: EventTypeAppCardComponent = function EventTypeAppCard({ const pathname = usePathname(); const { getAppData, setAppData, disabled } = useAppContextWithSchema(); const price = getAppData("price"); - const currency = getAppData("currency"); + const currency = getAppData("currency") || currencyOptions[0].value; const [selectedCurrency, setSelectedCurrency] = useState( currencyOptions.find((c) => c.value === currency) || { label: currencyOptions[0].label,