fix bug dashboard bugs & handle request update data in user profile & change design button in home page

This commit is contained in:
Ehsan
2025-06-13 22:12:58 +03:30
parent eea8737778
commit 891b0e8273
9 changed files with 23 additions and 24 deletions
@@ -5,8 +5,7 @@ import Head from "@/components/dashboard/userAccount/components/Head";
import UpdateBtn from "@/components/dashboard/userAccount/components/UpdateBtn";
function Disease({ data, setData, updateData, loading }) {
const { other } = data;
const { disease } = other && other[0];
const disease = data && data.other && data.other[0] && data.other[0].disease;
const tableHead = ["ردیف", "اسم", "وضعیت", ""];
const centerTable = [0];