Skip to content

Commit

Permalink
Merge pull request #4526 from Agoric/wallet-null-safe
Browse files Browse the repository at this point in the history
fix(wallet): dont crash when purses arent loaded before payments
  • Loading branch information
mergify[bot] authored Feb 10, 2022
2 parents 428349e + 2965063 commit 3a92849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wallet/ui/src/components/Requests.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const RequestsInternal = ({

const isDisabled = dapp => !dapp.enable;

payments = (payments || [])
payments = ((purses && payments) || [])
.filter(hasNoAutodeposit)
.map(p => ({ type: 'payment', data: p }));

Expand Down

0 comments on commit 3a92849

Please sign in to comment.