Fix missing postprocessing when the response is not ok
This commit is contained in:
parent
465e0612ff
commit
94c171d6bf
|
@ -46,11 +46,6 @@ export const postProcessingMiddleware = defineMiddleware(async ({ cookies, local
|
||||||
const currentCurrency = getCookieCurrency(cookies) ?? "USD";
|
const currentCurrency = getCookieCurrency(cookies) ?? "USD";
|
||||||
|
|
||||||
const response = await next();
|
const response = await next();
|
||||||
|
|
||||||
if (!response.ok) {
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
let html = await response.text();
|
let html = await response.text();
|
||||||
|
|
||||||
// HTML CLASS
|
// HTML CLASS
|
||||||
|
|
Loading…
Reference in New Issue