Skip to content

Commit

Permalink
refactor: use E.when()
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Hibbert <[email protected]>
  • Loading branch information
dckc and Chris-Hibbert committed Mar 12, 2024
1 parent f356af7 commit ffd4cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contract/src/postal-service.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const start = zcf => {
// XXX partial failure? return payments?
await Promise.all(
values(payouts).map(pmtP =>
Promise.resolve(pmtP).then(pmt => E(depositFacet).receive(pmt)),
E.when(pmtP, pmt => E(depositFacet).receive(pmt)),
),
);
seat.exit();
Expand Down

0 comments on commit ffd4cfd

Please sign in to comment.