refactor: make count count dyna,ic in profile

This commit is contained in:
2025-04-18 17:17:10 +05:30
parent a7f80b5158
commit 4573faec4d

View File

@@ -44,15 +44,15 @@ export default function ProfilePage() {
<div className="p-6 sm:text-xl border">
All Orders{" "}
<h2 className="text-lg sm:text-2xl font-semibold">
{profileData.orders || 0}
{profileData.order_count || 0}
</h2>
</div>
<div className="p-6 border rounded-md sm:text-xl ">
{/* <div className="p-6 border rounded-md sm:text-xl ">
Addresses{" "}
<h2 className="text-lg sm:text-2xl font-semibold">
{profileData.addresses || 0}
</h2>
</div>
</div> */}
</div>
<h1 className="text-2xl font-bold mb-4 mt-4">Profile information</h1>
<div className="bg-white shadow-md rounded p-6">