Skip to content

Commit

Permalink
Repeat double crypto pop fix for solana (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaller authored Jul 30, 2024
1 parent 6240332 commit 9b4ad19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/web3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const web3Login = onceAndSharePromise(async (): Promise<string> => {
return allAddresses[0];
});

export const web3LoginSol = async (): Promise<string> => {
export const web3LoginSol = onceAndSharePromise(async (): Promise<string> => {
try {
const result = await window.braveSolana.connect();
console.log("!!! allAddresses", result);
Expand All @@ -118,7 +118,7 @@ export const web3LoginSol = async (): Promise<string> => {
console.log("!!! allAddresses", result);
return result.publicKey.toBase58();
}
};
});

export const web3NFTs = async (address: string): Promise<NFT[]> => {
try {
Expand Down

0 comments on commit 9b4ad19

Please sign in to comment.