Skip to content
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
10 changes: 5 additions & 5 deletions components/explore/ProfileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function ProfileModal({

// Router and wallet
const router = useRouter();
const { address } = useStellarWallet();
const { publicKey } = useStellarWallet();

// Verification code state
const [verificationCode, setVerificationCode] = useState([
Expand Down Expand Up @@ -82,12 +82,12 @@ export default function ProfileModal({
setIsLoading(true);

try {
console.log("ProfileModal: Registering user with wallet:", address);
console.log("ProfileModal: Registering user with wallet:", publicKey);

const formData = {
username: displayName,
email: email,
wallet: address,
wallet: publicKey,
bio: bio || undefined,
};

Expand All @@ -109,11 +109,11 @@ export default function ProfileModal({
console.log("ProfileModal: Registration successful");

// Store wallet and username in localStorage for persistence
localStorage.setItem("wallet", address || "");
localStorage.setItem("wallet", publicKey || "");
localStorage.setItem("username", displayName);

// Also store in sessionStorage for redundancy
sessionStorage.setItem("wallet", address || "");
sessionStorage.setItem("wallet", publicKey || "");
sessionStorage.setItem("username", displayName);

// Skip verification for now and go straight to success
Expand Down
Loading