From 9eea4fa18a8f4b96d08a90e1be683116fe20ce97 Mon Sep 17 00:00:00 2001 From: Shawn Xie <35279399+shawnxie999@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:24:08 -0500 Subject: [PATCH] Fix extreneous ledger_entry call for Amount (#1095) ## High Level Overview of Change ### Context of Change ### Type of Change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Refactor (non-breaking change that only restructures code) - [ ] Tests (You added tests for code that already exists, or your new feature included in this PR) - [ ] Documentation Updates - [ ] Translation Updates - [ ] Release ### TypeScript/Hooks Update - [ ] Updated files to React Hooks - [ ] Updated files to TypeScript ## Before / After ## Test Plan --- src/containers/shared/components/Amount.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/shared/components/Amount.tsx b/src/containers/shared/components/Amount.tsx index e7fe6ecd5..1a767a796 100644 --- a/src/containers/shared/components/Amount.tsx +++ b/src/containers/shared/components/Amount.tsx @@ -29,7 +29,7 @@ export const Amount = ({ const currency = typeof value === 'string' ? 'XRP' : value.currency const amount = typeof value === 'string' ? parseInt(value, 10) / XRP_BASE : value.amount - const isMPT = typeof value === 'string' ? false : value.isMPT + const isMPT = typeof value === 'string' ? false : value.isMPT ?? false const options = { ...CURRENCY_OPTIONS, currency }