score order 0 if plan is base

This commit is contained in:
hamid zarghami
2025-12-29 10:22:11 +03:30
parent 7a9dc0c891
commit b0cba5f5f9
+6 -1
View File
@@ -166,7 +166,12 @@ function FoodPage({ }: Props) {
<div className='flex items-center gap-2 mt-2'>
<Cup size={14} className='stroke-disabled-text' />
<span className='text-disabled-text flex gap-1'>
{about?.data?.score?.purchaseScore && about?.data?.score?.purchaseAmount ? (
{about?.data?.plan === 'base' ? (
<>
<div>۰</div>
<span>امتیاز برای هر بار خرید</span>
</>
) : about?.data?.score?.purchaseScore && about?.data?.score?.purchaseAmount ? (
<>
<div>
{ef(