bug fixed

This commit is contained in:
Malini 2025-11-25 10:03:40 +05:30
parent 67dab814ee
commit 3c71ed8d5d
2 changed files with 2 additions and 2 deletions

View File

@ -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
}))

View File

@ -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" />