From 415964536f21f4cdc9d1556883df88c1d4ffc8bf Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Mon, 4 Nov 2024 08:48:03 +0100 Subject: [PATCH] PR fix --- components/Image.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/Image.tsx b/components/Image.tsx index accfdb19b..dc40069cd 100644 --- a/components/Image.tsx +++ b/components/Image.tsx @@ -7,17 +7,14 @@ import type { CSSProperties } from "react" import type { ImageProps } from "@/types/components/image" -const isBlockedByFirewall = (src: string) => { - if ( +function isBlockedByFirewall(src: string): boolean { + return ( src.includes("test.scandichotels.com") || src.includes("test2.scandichotels.com") || src.includes("test3.scandichotels.com") || src.includes("stage.scandichotels.com") || src.includes("prod.scandichotels.com") - ) { - return true - } - return false + ) } function imageLoader({ quality, src, width }: ImageLoaderProps) {