-
Notifications
You must be signed in to change notification settings - Fork 394
[P2P]-refactor: order util refactor #10115
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
[P2P]-refactor: order util refactor #10115
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information. |
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-nada-deriv-nada-p2ps-1561order-util-refactor.binary.sx/ |
packages/p2p/src/utils/orders.ts
Outdated
|
|
||
| get purchase_time() { | ||
| return getFormattedDateString(new Date(convertToMillis(this.order_details.created_time)), true); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no i deleted purchase order_purchase_time in this pr 😆 #10069
| /** | ||
| * Function that returns the user details of the order | ||
| * | ||
| * @returns {object} user details | ||
| */ | ||
| get my_user_details() { | ||
| return this.is_my_ad ? this.order_details.advertiser_details : this.order_details.client_details; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we are using this. Can you please check and remove if not being used.
| label={labels.right_send_or_receive} | ||
| value={`${amount_display} ${account_currency}`} | ||
| /> | ||
| <OrderInfoBlock label={localize('Time')} value={purchase_time} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we keep purchase_time instead of order_purchase_time? cause its gonna cause conflicts with the other card 🙏
|
SonarCloud Quality Gate failed.
|
|
Kudos, SonarCloud Quality Gate passed!
|
|
❌ Smoke test run (2) failed. See logs for details: Visit Action |












Changes:
order.js util typescript migration, and unit test
Screenshots:
Please provide some screenshots of the change.
