Skip to content

Commit 878fc8d

Browse files
committed
fix(account): set default displayName to Anonymous User
- Change default displayName from formatted wallet address to Anonymous User - Users can customize their name later via user dropdown - Provides cleaner default user experience - Matches professional platform standards
1 parent b58f463 commit 878fc8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contexts/auth/AccountContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const AccountProvider: React.FC<AccountProviderProps> = ({ children }) =>
119119
// Add timeout to prevent hanging
120120
const accountCreationPromise = accountService.createAccount(
121121
walletData.publicKey,
122-
walletData.publicKey,
122+
walletData.publicKey, // publicKey parameter (not used for displayName anymore)
123123
walletData.network
124124
);
125125

lib/services/account-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class AccountService {
4545
// Match the exact structure from firebase-service.ts and Firebase example
4646
const newAccount = {
4747
id: accountId,
48-
displayName: publicKey.slice(0, 6) + '...' + publicKey.slice(-4), // Default display name
48+
displayName: 'Anonymous User', // Default display name
4949
walletAddress,
5050
network: network.toUpperCase(), // Match "TESTNET" format from example
5151
level: 1,

0 commit comments

Comments
 (0)