bug fixed
This commit is contained in:
parent
67dab814ee
commit
3c71ed8d5d
@ -2734,7 +2734,7 @@ const handleView = async (id) => {
|
||||
establishment_products: Array.isArray(selectedProducts) && selectedProducts.length > 0
|
||||
? selectedProducts.map(p => ({
|
||||
product_id: p.product_id || p.id || 0,
|
||||
action_done_by: "admin_user" ,
|
||||
action_done_by: "admin_users" ,
|
||||
created_by: currentUserId?.id
|
||||
|
||||
}))
|
||||
|
||||
@ -905,7 +905,7 @@ const EditCompanyProfile = () => {
|
||||
return (
|
||||
<li key={product.value} className="p-3 hover:bg-[#F9FAFB] flex justify-between items-center">
|
||||
<div className="flex items-center gap-2">
|
||||
{product.action_done_by === "admin_user" ? (
|
||||
{product.action_done_by === "admin_users" ? (
|
||||
<MdAdminPanelSettings className="text-[#92722A] text-lg" title="Added by Admin" />
|
||||
) : (
|
||||
<FaBuilding className="text-[#92722A]" title="Added by Establishment" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user