fix display discount
This commit is contained in:
@@ -25,8 +25,8 @@ const ServiceHeader: FC<Props> = (props: Props) => {
|
||||
useEffect(() => {
|
||||
|
||||
const plan: PlanItemType = data?.subscriptionPlans.find((item) => item.id === planSelected)
|
||||
setFinalPrice(plan.originalPrice)
|
||||
setPrice(plan?.price)
|
||||
setFinalPrice(plan.price)
|
||||
setPrice(plan?.originalPrice)
|
||||
|
||||
}, [planSelected])
|
||||
|
||||
@@ -82,7 +82,7 @@ const ServiceHeader: FC<Props> = (props: Props) => {
|
||||
{NumberFormat(Number(price))}
|
||||
</div>
|
||||
}
|
||||
<div>{NumberFormat(Number(price))}</div>
|
||||
<div>{NumberFormat(Number(finalPrice))}</div>
|
||||
</div>
|
||||
<span>{t('toman')}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user