Skip to content

Commit

Permalink
Fix contact display with empty solanaAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Oct 18, 2023
1 parent 7c03c8c commit 4a42ed8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/features/payment/PaymentScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,10 @@ const PaymentScreen = () => {
Object.values(accounts || {}),
({ address: addr }) => addr,
)
let contact = allAccounts.find((c) => c.solanaAddress === address)
let contact = allAccounts.find(
(c) => c.solanaAddress && c.solanaAddress === addres,
s,
)
if (!contact)
contact = { address, netType: networkType, alias: domain || '' }

Expand Down

0 comments on commit 4a42ed8

Please sign in to comment.