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
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • 0e95c8aa
    Issue #412 - Validate Account in route starts with @ · 0e95c8aa
    Dima Rifai authored
@@ -178,7 +178,7 @@ export default function BalanceHistory() {
? 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 />;
}
Loading