Skip to content
Snippets Groups Projects

Delrifai/#412 verify account starts with @

Merged Dima Rifai requested to merge delrifai/#412_verify_account_starts_with_@ into develop
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
  • b9a72b82
    Issue #412 - Validate Account in route starts with @ · b9a72b82
    Dima Rifai authored
+ 2
1
@@ -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 ..." />
Loading