fix(frontend): pass string ID to adminCompaniesApi.updateStatus
This commit is contained in:
parent
59df524ed5
commit
39fde338b4
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ export default function AdminCompaniesPage() {
|
|||
setCompanies(companies.map(c => c.id === company.id ? { ...c, [field]: newValue } : c))
|
||||
|
||||
try {
|
||||
await adminCompaniesApi.updateStatus(Number(company.id), { [field]: newValue })
|
||||
await adminCompaniesApi.updateStatus(company.id, { [field]: newValue })
|
||||
toast.success(`Company ${field} updated`)
|
||||
} catch (error) {
|
||||
toast.error(`Failed to update ${field}`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue