Skip to content

Commit

Permalink
chore(types): publishResult
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 27, 2024
1 parent 100b64f commit 8b0ec4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/smart-wallet/src/offerWatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const prepareOfferWatcher = baggage => {
);
},

/** @param {unknown} result */
publishResult(result) {
const { state, facets } = this;

Expand All @@ -169,13 +170,15 @@ export const prepareOfferWatcher = baggage => {
facets.helper.updateStatus({ result });
break;
case 'copyRecord':
// @ts-expect-error narrowed by passStyle
if ('invitationMakers' in result) {
// save for continuing invitation offer

void facets.helper.onNewContinuingOffer(
String(state.status.id),
state.invitationAmount,
result.invitationMakers,
// @ts-expect-error narrowed by passStyle
result.publicSubscribers,
);
}
Expand Down

0 comments on commit 8b0ec4c

Please sign in to comment.