Fixed the credit issues

This commit is contained in:
2023-11-27 01:12:24 -08:00
parent 35ed1d48a3
commit a98d967ba4
3 changed files with 4 additions and 2 deletions
@@ -45,7 +45,7 @@ function ThePaymentText({ value, type }) {
* @returns {JSX.Element} - The rendered component.
*/
function AmountSection({ currency, amount, country }) {
const formattedAmount = amount?.toFixed(2);
const formattedAmount = (+amount * 0.01)?.toFixed(2);
const gapClassName = country === "US" ? "gap-14" : "gap-4";
return (
@@ -87,7 +87,7 @@ function TransactionFeeSection({ currency, fee, country }) {
*/
function TotalSection({ currency, amount, fee, country }) {
const total = Number(amount) + Number(fee);
const formattedTotal = total?.toFixed(2);
const formattedTotal = (total * 0.01)?.toFixed(2);
const gap = country === "US" ? "gap-[8rem]" : "gap-[6.3rem]";