From af35f7c31c65b6fb42c67424674f1f8acd68a5a1 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 17 May 2023 16:08:45 +0700
Subject: Fix banner url

---
 src/core/components/elements/Link/Link.jsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/core/components/elements/Link/Link.jsx')

diff --git a/src/core/components/elements/Link/Link.jsx b/src/core/components/elements/Link/Link.jsx
index f6b39d45..716ce325 100644
--- a/src/core/components/elements/Link/Link.jsx
+++ b/src/core/components/elements/Link/Link.jsx
@@ -9,6 +9,8 @@ import NextLink from 'next/link'
  * @returns {JSX.Element} - Rendered `Link` component.
  */
 const Link = ({ children, ...props }) => {
+  if (!props?.href || props?.href == false) return children
+
   return (
     <NextLink
       {...props}
-- 
cgit v1.2.3

