Perbaikan get notif donasi

This commit is contained in:
2024-01-22 11:02:58 +08:00
parent 9143f438d8
commit 31422db25d
2 changed files with 7 additions and 13 deletions

View File

@@ -9,9 +9,9 @@ export default async function Layout({
children: React.ReactNode;
}) {
const userId = await User_getUserId();
// const dataDonasi = await DOnasi_getList
const isRead = await Donasi_getNotifByUserId(userId).then((res) =>
res.map((val: any) => val.isRead)
// console.log(userId)
const isRead = await Donasi_getNotifByUserId(userId).then((res: any) =>
res.map((val: any) => val.isRead)
);
// console.log(isRead)