Closed thibautlagarde closed 2 months ago
Hi Sharetribe,
I've probably found an issue in the codebase regarding the missing payout details banner displayed on Listing Pages.
Files: src/containers/ListingPage/ListingPageCoverPhoto.js line 205 src/containers/ListingPage/ListingPageCarousel.js line 202
src/containers/ListingPage/ListingPageCoverPhoto.js
src/containers/ListingPage/ListingPageCarousel.js
const processType = isBooking ? ('booking' ? isPurchase : 'purchase') : 'inquiry'; This caused the noPayoutDetails banner to never show for purchases.
const processType = isBooking ? ('booking' ? isPurchase : 'purchase') : 'inquiry';
I fixed it with this const processType = isBooking ? 'booking' : isPurchase ? 'purchase' : 'inquiry';
const processType = isBooking ? 'booking' : isPurchase ? 'purchase' : 'inquiry';
Thanks!
Thanks! It seems I haven't reviewed incoming changes properly.
https://github.com/sharetribe/web-template/pull/443
The suggested fix is now merged to the main branch. I'll close this issue.
Hi Sharetribe,
I've probably found an issue in the codebase regarding the missing payout details banner displayed on Listing Pages.
Files:
src/containers/ListingPage/ListingPageCoverPhoto.js
line 205src/containers/ListingPage/ListingPageCarousel.js
line 202const processType = isBooking ? ('booking' ? isPurchase : 'purchase') : 'inquiry';
This caused the noPayoutDetails banner to never show for purchases.I fixed it with this
const processType = isBooking ? 'booking' : isPurchase ? 'purchase' : 'inquiry';
Thanks!