Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Spot pricing sort for lowPrice/highPrice #1350

Merged
merged 2 commits into from
Jun 9, 2022
Merged

Conversation

tlgimenes
Copy link
Contributor

@tlgimenes tlgimenes commented Jun 9, 2022

What's the purpose of this pull request?

SKUs can have multiple sellers. We have an heuristic for choosing the best seller. This is written on bestOfferFirst function.This function sorts the smallest available spotPrice first.

The issue we had is that AggregateOffers's low/hight price was returning the sellingPrice instead of the spotPrice, making the values inconsistent.

This PR addresses this issue by making low/high price return the same properties used on bestOfferFirst

Starters Deploy Preview

@tlgimenes tlgimenes requested a review from a team as a code owner June 9, 2022 14:30
@vercel
Copy link

vercel bot commented Jun 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
faststore ✅ Ready (Inspect) Visit Preview Jun 9, 2022 at 4:42PM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 9, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e931035:

Sandbox Source
Store UI Typescript Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants