Skip to content

Commit

Permalink
fix: one less unnecessary "then" (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
erights authored Aug 26, 2020
1 parent f1342b4 commit 8b22ad6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/zoe/src/zoeService/zoeSeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ export const makeZoeSeatAdminKit = (
getCurrentAllocation: async () => zoeSeatAdmin.getCurrentAllocation(),
getProposal: async () => proposal,
getPayouts: async () => payoutPromiseKit.promise,
getPayout: async keyword =>
payoutPromiseKit.promise.then(payouts => payouts[keyword]),
getPayout: async keyword => E.G(payoutPromiseKit.promise)[keyword],
getOfferResult: async () => offerResult,
hasExited: async () => instanceAdmin.hasZoeSeatAdmin(zoeSeatAdmin),
tryExit: async () => E(exitObj).exit(),
Expand Down

0 comments on commit 8b22ad6

Please sign in to comment.