From dfd77dffe2649e27567c475e2a6e61213db26f00 Mon Sep 17 00:00:00 2001 From: Darren Ethier Date: Mon, 1 May 2023 15:05:03 -0400 Subject: [PATCH] Account for undefined in type definitions --- assets/js/shared/context/product-data-context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/shared/context/product-data-context.tsx b/assets/js/shared/context/product-data-context.tsx index deb6f2d8d0e..7f6979060fe 100644 --- a/assets/js/shared/context/product-data-context.tsx +++ b/assets/js/shared/context/product-data-context.tsx @@ -70,7 +70,7 @@ export const useProductDataContext = () => useContext( ProductDataContext ); interface ProductDataContextProviderProps { product: ProductResponseItem | null; - children: JSX.Element | JSX.Element[]; + children: JSX.Element | JSX.Element[] | undefined; isLoading: boolean; }