Fix missing postprocessing when the response is not ok

This commit is contained in:
DrMint 2024-07-07 01:57:07 +02:00
parent 465e0612ff
commit 94c171d6bf
1 changed files with 0 additions and 5 deletions

View File

@ -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