Skip to content

MM2-168 [ Easy Post Integration ]#290

Open
KacpiDrewniak wants to merge 1 commit intomainfrom
feature/MM2-168
Open

MM2-168 [ Easy Post Integration ]#290
KacpiDrewniak wants to merge 1 commit intomainfrom
feature/MM2-168

Conversation

@KacpiDrewniak
Copy link
Copy Markdown

No description provided.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
b2c-marketplace-storefront-4m3w Ready Ready Preview, Comment Jan 19, 2026 8:06pm
b2c-sandbox Ready Ready Preview, Comment Jan 19, 2026 8:06pm
mercurb2c-connector Ready Ready Preview, Comment Jan 19, 2026 8:06pm
mercurb2c-development Ready Ready Preview, Comment Jan 19, 2026 8:06pm
mercurb2c-testing Ready Ready Preview, Comment Jan 19, 2026 8:06pm

Request Review

setSelectedRates((prev: Record<string, string>) => {
if (prev[option.id]) return prev; // Don't override if already selected

const cheapestRate = option.calculated_price.rates.sort(
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cheapest rate is actually returned in price field, so you can use that

pricesMap[option.id] = option.amount!;

// Check if this is an EasyPost option with rates
if (option.calculated_price?.rates && option.calculated_price.rates.length > 0) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this handle scenario where calculated price is undefined or 0 and no rates are returned, because carrier doesn't support provided addresses? These shipping options should be skipped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants