|
@@ -84,7 +84,7 @@ const DepositData: FC<Props> = (props) => {
|
|
|
|
|
|
const getCurrentProduct = (amount: number) => {
|
|
|
if (!shopInfo?.products?.length) return null;
|
|
|
- let result = shopInfo?.products?.find((item) => item.par_value === Number(amount));
|
|
|
+ let result = shopInfo?.products?.find((item) => item.pay_value === Number(amount));
|
|
|
if (!result) {
|
|
|
result = shopInfo?.products?.find((item) => item.type === 2);
|
|
|
}
|
|
@@ -263,7 +263,7 @@ const DepositData: FC<Props> = (props) => {
|
|
|
return (
|
|
|
<li
|
|
|
className={
|
|
|
- amount == item.par_value &&
|
|
|
+ amount == item.pay_value &&
|
|
|
currentProduct?.id === item.id
|
|
|
? "active"
|
|
|
: ""
|
|
@@ -271,14 +271,14 @@ const DepositData: FC<Props> = (props) => {
|
|
|
key={index}
|
|
|
onClick={() => {
|
|
|
setCurrentProduct(item);
|
|
|
- amountChange(item.par_value);
|
|
|
+ amountChange(item.pay_value);
|
|
|
}}
|
|
|
>
|
|
|
{!!item.is_hot && <span className="hot"></span>}
|
|
|
<div className="amountContent">
|
|
|
{/* <span className="iconfont icon-unit-brl"></span> */}
|
|
|
<span className="iconfont">R$</span>
|
|
|
- <span> {item.par_value}</span>
|
|
|
+ <span> {item.pay_value}</span>
|
|
|
</div>
|
|
|
|
|
|
<Reward data={item} />
|