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(ui-ux): fix displayed amount in transaction list #342

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

lykalabrada
Copy link
Contributor

What this PR does / why we need it:

Which issue(s) does this PR fixes?:

Fixes DFC-398

Additional comments?:

Developer Checklist:

  • Read your code changes at least once
  • Your UI implementation visually matched the rendered design*
  • Unit tests*
  • Added e2e tests*

Copy link

linear bot commented Nov 1, 2023

DFC-398 Task: Fix displayed DFI amount from transactions list

Amount displayed on Transactions list doesnt match the amount inside tx details page (see image)

image.png

Copy link

netlify bot commented Nov 1, 2023

Deploy Preview for defimetascan ready!

Name Link
🔨 Latest commit 32ae445
🔍 Latest deploy log https://app.netlify.com/sites/defimetascan/deploys/65421054d8775f0008e0b6f2
😎 Deploy Preview https://deploy-preview-342--defimetascan.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance:
Accessibility:
Best Practices:
SEO:
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the kind/fix Fix a bug label Nov 1, 2023
@@ -53,7 +42,7 @@ export const transformTransactionData = (tx: RawTransactionI): TransactionI => {
transactionType,
type: tx.type,
hash: tx.hash,
amount: dfiAmount,
amount: formatEther(BigInt(tx.value ?? "0")),
Copy link
Member

Choose a reason for hiding this comment

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

for diff coin decimal value will be different, I guess we should get decimal value and then format

Copy link
Contributor Author

@lykalabrada lykalabrada Nov 1, 2023

Choose a reason for hiding this comment

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

this amount is only for "DFI value" so should always 18 decimals

@fullstackninja864 fullstackninja864 merged commit b87cd3b into main Nov 1, 2023
8 checks passed
@fullstackninja864 fullstackninja864 deleted the lyka/fix-txlist-amount branch November 1, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/fix Fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants