diff --git a/src/utils/internal/buildRequestUrl.ts b/src/utils/internal/buildRequestUrl.ts index 985598f..30dca27 100644 --- a/src/utils/internal/buildRequestUrl.ts +++ b/src/utils/internal/buildRequestUrl.ts @@ -4,9 +4,7 @@ export const buildRequestUrl = ( args: Record = {}, ) => { const concatenated = `${baseUrl}/${endpointUrl}`; - const withoutDoubleSlashes = concatenated.replaceAll(/([^:]\/)\/+/g, "$1"); - - let withArgs = withoutDoubleSlashes; + let withArgs = concatenated.replaceAll(/([^:]\/)\/+/g, "$1"); const queryParamValues: Record = {};