|
|
@@ -27,10 +27,10 @@ const InvoiceSearchWrapper: React.FC & SubComponents = async () => { |
|
|
|
let filteredInvoice = invoices |
|
|
|
if (teamId) { |
|
|
|
filteredInvoice = invoices.filter(i => i.teamId === teamId) |
|
|
|
if (userStaff.isTeamLead == false) { |
|
|
|
filteredInvoice = invoices |
|
|
|
} |
|
|
|
} |
|
|
|
// else { |
|
|
|
// filteredInvoice = [] |
|
|
|
// } |
|
|
|
|
|
|
|
const convertedInvoices = filteredInvoice.map((invoice)=>{ |
|
|
|
return{ |
|
|
|