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

[PLA-1391] fix marketplace prices display #51

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

zlayine
Copy link
Contributor

@zlayine zlayine commented Nov 8, 2023

No description provided.

@zlayine zlayine self-assigned this Nov 8, 2023
Copy link

github-actions bot commented Nov 8, 2023

PR Analysis

  • 🎯 Main theme: Fixing the display of prices in the marketplace
  • 📝 PR summary: This PR addresses a bug in the display of prices in the marketplace. It changes the price type from string to number and updates the display logic to handle prices greater than 100 differently.
  • 📌 Type of PR: Bug fix
  • 🧪 Relevant tests added: No
  • ⏱️ Estimated effort to review [1-5]: 2, because the changes are straightforward and limited to a few lines of code.
  • 🔒 Security concerns: No security concerns found

PR Feedback

  • 💡 General suggestions: The PR seems to be addressing the issue effectively. However, it would be beneficial to add some tests to ensure that the new logic works as expected in all scenarios.

  • 🤖 Code feedback:

How to use

To invoke the PR-Agent, add a comment using one of the following commands:
/review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option.
/describe: Modify the PR title and description based on the contents of the PR.
/improve [--extended]: Suggest improvements to the code in the PR. Extended mode employs several calls, and provides a more thorough feedback.
/ask <QUESTION>: Pose a question about the PR.
/update_changelog: Update the changelog based on the PR's contents.

To edit any configuration parameter from configuration.toml, add --config_path=new_value
For example: /review --pr_reviewer.extra_instructions="focus on the file: ..."
To list the possible configuration parameters, use the /config command.

Copy link
Member

@leonardocustodio leonardocustodio left a comment

Choose a reason for hiding this comment

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

Not sure this makes sense. I mean what if I use a token that has 1000 of price and the min unit is still 1?
I think what should be done here is to check if the price is referring to ENJ, if yes, you format it if not you leave it the way it is. You can check if it is using ENJ by checking to make & take if collectionId & tokenId = 0 is on the field take then it is ENJ

@zlayine zlayine merged commit 66ba076 into master Nov 10, 2023
3 checks passed
@zlayine zlayine deleted the bugfix/pla-1391/fix-marketplace-bids branch November 10, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants