From b4707fbecee0f1ebf076aff063ee8e123c88885d Mon Sep 17 00:00:00 2001 From: Thomas Roberts Date: Wed, 16 Nov 2022 14:07:53 +0000 Subject: [PATCH] Update type of children on CartEventsProvider --- .../base/context/providers/cart-checkout/cart-events/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/base/context/providers/cart-checkout/cart-events/index.tsx b/assets/js/base/context/providers/cart-checkout/cart-events/index.tsx index 8d4569ff615..90a4998f94a 100644 --- a/assets/js/base/context/providers/cart-checkout/cart-events/index.tsx +++ b/assets/js/base/context/providers/cart-checkout/cart-events/index.tsx @@ -47,7 +47,7 @@ export const useCartEventsContext = () => { export const CartEventsProvider = ( { children, }: { - children: React.ReactChildren; + children: React.ReactNode; } ): JSX.Element => { const [ observers, observerDispatch ] = useReducer( emitReducer, {} ); const currentObservers = useRef( observers );