@@ -67,7 +67,7 @@ export async function restApiFetch<T>({
revalidate?: number;
}): Promise<{ status: number; body: T } | never> {
try {
- let apiUrl = api.startsWith("http") ? api : `${REST_API_URL}${api}`;
+ const apiUrl = api.startsWith("http") ? api : `${REST_API_URL}${api}`;
let bagistoCartId = "";
let accessToken: string | undefined = undefined;