From 162c29164a989b1e0c02120c2cffcf380840b27c Mon Sep 17 00:00:00 2001 From: Jeremy Yip Date: Wed, 25 Oct 2023 15:45:07 -0700 Subject: [PATCH] Fix type error --- packages/data-stores/src/add-ons/use-add-on-checkout-link.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts b/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts index b924342342574c..d2a4cb1000ced3 100644 --- a/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts +++ b/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts @@ -14,7 +14,7 @@ export const useAddOnCheckoutLink = (): ( ( quantity?: number ) => string ) => { const checkoutLinkCallback = useCallback( - ( siteDetails: SiteDetails, addOnSlug: string, quantity?: number ): string => { + ( siteDetails: SiteDetails | null, addOnSlug: string, quantity?: number ): string => { // If no site is provided, return the checkout link with the add-on (will render site-selector). if ( ! siteDetails ) { return `/checkout/${ addOnSlug }`;