fix(frontend): resolve dosage_logic property type check in CatalogClient.tsx
This commit is contained in:
1 parent
6932f091c4
commit
df6c56b1e8
1 file changed
+2
-2
@@ -195,12 +195,12 @@ export default function CatalogClient() {
|
||||
)}
|
||||
|
||||
{/* Dosage Instructions */}
|
||||
{product.dosageLogic && (
|
||||
{(product.dosage_logic || (product as any).dosageLogic) && (
|
||||
<div className="bg-amber-50/60 border border-amber-200/60 rounded-2xl p-3 text-xs font-bold text-amber-900 flex items-start gap-2">
|
||||
<ShieldCheck className="w-4 h-4 text-amber-600 shrink-0 mt-0.5" />
|
||||
<div>
|
||||
<span className="font-black text-[11px] block text-amber-800">دستور مصرف بالینی:</span>
|
||||
<span className="text-[11px] font-medium leading-relaxed">{product.dosageLogic}</span>
|
||||
<span className="text-[11px] font-medium leading-relaxed">{product.dosage_logic || (product as any).dosageLogic}</span>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user