Skip to content

Commit

Permalink
Merge pull request #2201 from Chia-Network/paninaro.fix_wc_createOffe…
Browse files Browse the repository at this point in the history
…rForIds_preview

Fix crash when previewing an offer created using WalletConnect
  • Loading branch information
seeden authored Oct 17, 2023
2 parents 36c593b + dc8e125 commit a098cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gui/src/components/offers2/OfferBuilderViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function OfferBuilderViewer(props: OfferBuilderViewerProps, ref: any) {

const showInvalid = !isValidating && isValid === false;

const validTimeList = isMyOffer ? myOfferValidTimes : offerSummary.validTimes;
const validTimeList = isMyOffer ? myOfferValidTimes : offerSummary?.validTimes;

const hasExpiration =
validTimeList?.maxTime !== null && validTimeList?.maxTime !== undefined && validTimeList?.maxTime !== 0;
Expand Down

0 comments on commit a098cff

Please sign in to comment.