From 8b22ad6ba9f056bfe01a2daf5a02396e20c3b516 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Wed, 26 Aug 2020 14:55:26 -0700 Subject: [PATCH] fix: one less unnecessary "then" (#1623) --- packages/zoe/src/zoeService/zoeSeat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/zoe/src/zoeService/zoeSeat.js b/packages/zoe/src/zoeService/zoeSeat.js index 06ddf1ee821..3c8e6caf6a4 100644 --- a/packages/zoe/src/zoeService/zoeSeat.js +++ b/packages/zoe/src/zoeService/zoeSeat.js @@ -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(),