Skip to content

Commit

Permalink
fix(wallet): fix offer id reference (#4393)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsiegart authored Jan 26, 2022
1 parent b71223d commit 8c9dae7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/wallet/ui/src/util/WalletBackendAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export const makeBackendFromWalletBridge = walletBridge => {
const { done, value } = await offersMembers.next();
return harden({
done,
value: value.map(({ offerId, ...rest }) =>
value: value.map(({ id, ...rest }) =>
harden({
offerId,
id,
...rest,
actions: Far('offerActions', {
// Provide these synthetic actions since offers don't have any yet.
accept: () => E(walletBridge).acceptOffer(offerId),
decline: () => E(walletBridge).declineOffer(offerId),
cancel: () => E(walletBridge).cancelOffer(offerId),
accept: () => E(walletBridge).acceptOffer(id),
decline: () => E(walletBridge).declineOffer(id),
cancel: () => E(walletBridge).cancelOffer(id),
}),
}),
),
Expand Down

0 comments on commit 8c9dae7

Please sign in to comment.