fix create and edit provider

This commit is contained in:
Wikzyy
2025-03-25 16:48:23 +07:00
parent d8400c49d2
commit 72825d737b
3 changed files with 16 additions and 16 deletions

View File

@ -292,7 +292,7 @@ const AddDialog = () => {
<PopoverTrigger asChild>
<button type="button" className="input col-span-5 text-left">
{customers.find((customer) => customer.id === formField.agent)
?.fullname || 'Select Agent'}
?.username || 'Select Agent'}
</button>
</PopoverTrigger>
<PopoverContent className="w-[400px] p-0">
@ -313,7 +313,7 @@ const AddDialog = () => {
setOpen(false);
}}
>
{customer.fullname}
{customer.username}
</CommandItem>
))}
</CommandGroup>