Skip to content

Commit f772671

Browse files
authored
fix: fix book-a-call action (#598)
1 parent 4dc530a commit f772671

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/website/src/components/navigation.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ const optimizedLogo = await getImage({
99
height: 51,
1010
format: "webp",
1111
});
12-
13-
const isContact = Astro.url.pathname === "/contact";
1412
---
1513

1614
<header
@@ -108,7 +106,7 @@ const isContact = Astro.url.pathname === "/contact";
108106
data-navhidden="true"
109107
id="book-a-call-action"
110108
class="invisible w-fit font-medium h-[39px] items-center px-4 py-2 rounded-md text-base text-center whitespace-nowrap bg-[#545664] text-[#ffffff] hover:opacity-90"
111-
href={isContact ? "/#book-a-call-section" : "#book-a-call-section"}
109+
href={"#book-a-call-section"}
112110
>
113111
Book a call
114112
</a>
@@ -151,7 +149,7 @@ const isContact = Astro.url.pathname === "/contact";
151149
text-base text-center
152150
whitespace-nowrap
153151
bg-[#545664] text-[#ffffff] hover:opacity-90"
154-
href={isContact ? "/#book-a-call-section" : "#book-a-call-section"}
152+
href={"#book-a-call-section"}
155153
>
156154
Book a call
157155
</a>

0 commit comments

Comments
 (0)