Skip to content

Commit 1584562

Browse files
authored
docs: wrap the object literal in parentheses (#17)
Update wallet.md Wrong usage arrow function inside map Fix: Wrap the object literal in parentheses
1 parent a1b1b19 commit 1584562

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/content/docs/token-2022/wallet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ const token2022Accounts = await connection.getTokenAccountsByOwner(
174174
);
175175
const accountsWithProgramId = [...tokenAccounts.value, ...token2022Accounts.value].map(
176176
({ account, pubkey }) =>
177-
{
177+
({
178178
account,
179179
pubkey,
180180
programId: account.data.program === 'spl-token' ? TOKEN_PROGRAM_ID : TOKEN_2022_PROGRAM_ID,
181-
},
181+
}),
182182
);
183183

184184
// later on...

0 commit comments

Comments
 (0)