From 3ec0b2485ac6822d8f8263e963ca3b5b24a3992d Mon Sep 17 00:00:00 2001 From: Victor Gerbrands Date: Mon, 8 May 2023 17:29:25 +0200 Subject: [PATCH] fix: merge conflicts --- lib/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils.ts b/lib/utils.ts index 21f627c58..7a0aee454 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -1,6 +1,7 @@ +import { ReadonlyURLSearchParams } from 'next/navigation'; import { MedusaProductOption } from './medusa/types'; -export const createUrl = (pathname: string, params: URLSearchParams) => { +export const createUrl = (pathname: string, params: URLSearchParams | ReadonlyURLSearchParams) => { const paramsString = params.toString(); const queryString = `${paramsString.length ? '?' : ''}${paramsString}`;