Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyip committed Oct 25, 2023
1 parent 5b9d560 commit 162c291
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }`;
Expand Down

0 comments on commit 162c291

Please sign in to comment.