Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Update page.tsx #1

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/[email]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export default async function Email({ params }: EmailProps) {
const { email } = await params;
const decodedEmail = decodeURIComponent(email);

if (!decodedEmail.includes("@")) {
if (!decodedEmail.endsWith("@vwh.sh")) {
return (
<ErrorAlert
title="Invalid email"
description="Please enter a valid email address."
title="Invalid Email"
description="Email must end with @vwh.sh ."
/>
);
}
Expand Down