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
@@ -160,6 +160,7 @@ function AddFundDollars(props) {
let stateData = {
amount: Number(props.input) * 100,
card_uid: "", //added card_uid as empty string
currency: props.walletItem?.code,
};
@@ -71,6 +71,7 @@ function AddFundPop({
// Prepare state data for API call
let stateData = {
amount: Number(input) * 100,
card_uid: "", //added card_uid as empty string
currency: walletItem?.code,
};
@@ -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]";