From 0c8b89128967d7a06d5da86601d36e38ed95be72 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Sat, 19 Apr 2025 15:23:47 +0200 Subject: [PATCH] style: Update Link component to improve code readability --- app/components/Link.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/Link.tsx b/app/components/Link.tsx index 82b36f5..359290a 100755 --- a/app/components/Link.tsx +++ b/app/components/Link.tsx @@ -18,7 +18,9 @@ export function Link(props: LinkProps) { const downloadExtensions = [".pdf", ".zip"]; - const isDownload = downloadExtensions.some(props.href.endsWith); + const isDownload = downloadExtensions.some((extension) => + props.href.endsWith(extension), + ); return (