Skip to content
Snippets Groups Projects
Commit b9a72b82 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue #412 - Validate Account in route starts with @

parent 2e5d5694
No related branches found
No related tags found
No related merge requests found
Pipeline #112377 failed
......@@ -283,10 +283,11 @@ export default function Account() {
? router.query.accountName[0] // If it's an array, get the first element
: router.query.accountName; // Otherwise, treat it as a string directly
if(routeAccountName && !routeAccountName.startsWith("@") || !accountNameFromRoute)
if(routeAccountName && !routeAccountName.startsWith("@"))
{
return <ErrorPage />;
}
if (!accountDetails) {
return (
<Loader2 className="animate-spin mt-1 text-black dark:text-white h-12 w-12 ml-3 ..." />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment