fix
## Deskripsi: - Optimalisasi admin voting ## No issue
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import toast from "react-simple-toasts";
|
||||
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global/notifikasi_peringatan";
|
||||
import { funGetListPortofolio } from "./get/get_list_portofolio";
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param id - profileId
|
||||
* @returns load list portofolio by Id
|
||||
*/
|
||||
export async function loadListPortofolio(id: string) {
|
||||
if (id === null) {
|
||||
return toast("Id null");
|
||||
return ComponentGlobal_NotifikasiPeringatan("Id null");
|
||||
} else {
|
||||
const data = await funGetListPortofolio(id).then((res) => res);
|
||||
return data
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user