Updated it so the Corporate is updated into Active when its payment is accepted

This commit is contained in:
Tiago Ribeiro
2024-01-21 20:35:35 +00:00
parent 8c1da3a84a
commit cfde8ac9f0
3 changed files with 7 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ const PaymentCreator = ({onClose, reload, showComission = false}: {onClose: () =
options={(users.filter((u) => u.type === "corporate") as CorporateUser[]).map((user) => ({
value: user.id,
meta: user,
label: `${user.corporateInformation.companyInformation.name || user.name} - ${user.email}`,
label: `${user.corporateInformation?.companyInformation?.name || user.name} - ${user.email}`,
}))}
defaultValue={{value: "undefined", label: "Select an account"}}
onChange={(value) => setCorporate((value as any)?.meta ?? undefined)}