Skip to content

Commit

Permalink
Merge pull request #8984 from Agoric/8966-repair
Browse files Browse the repository at this point in the history
fix: repair incorrect fix for repairWalletForIncarnation2
  • Loading branch information
mergify[bot] authored Feb 24, 2024
2 parents e5ee0b4 + 4d6a823 commit 64d9318
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/smart-wallet/src/smartWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,15 @@ export const prepareSmartWallet = (baggage, shared) => {

const watchOutcome = (async () => {
await null;
let invitationAmount = state.offerToUsedInvitation.get(
let invitationAmount = state.offerToUsedInvitation.has(
// @ts-expect-error older type allowed number
offerSpec.id,
);
)
? state.offerToUsedInvitation.get(
// @ts-expect-error older type allowed number
offerSpec.id,
)
: undefined;
if (invitationAmount) {
facets.helper.logWalletInfo(
'recovered invitation amount for offer',
Expand Down

0 comments on commit 64d9318

Please sign in to comment.