Update customer selection in authentication flow.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/f4dee1c0-bc81-4a63-9e10-476f21e0c737.jpg
This commit is contained in:
alphaeusmote
2025-04-11 21:17:01 +00:00
+8 -8
View File
@@ -85,7 +85,7 @@ export default function AuthPage() {
email: "", email: "",
password: "", password: "",
fullName: "", fullName: "",
organizationId: undefined, customerId: undefined,
}, },
}); });
@@ -397,23 +397,23 @@ export default function AuthPage() {
/> />
<FormField <FormField
control={registerForm.control} control={registerForm.control}
name="organizationId" name="customerId"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Organization</FormLabel> <FormLabel>Customer</FormLabel>
<FormControl> <FormControl>
<Select <Select
disabled={orgsLoading} disabled={customersLoading}
onValueChange={(value) => field.onChange(value)} onValueChange={(value) => field.onChange(value)}
value={field.value || ""} value={field.value || ""}
> >
<SelectTrigger> <SelectTrigger>
<SelectValue placeholder="Select an organization (optional)" /> <SelectValue placeholder="Select a customer (optional)" />
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>
{organizations.map((org) => ( {customers.map((customer) => (
<SelectItem key={org.id} value={org.id.toString()}> <SelectItem key={customer.id} value={customer.id.toString()}>
{org.name} {customer.name}
</SelectItem> </SelectItem>
))} ))}
</SelectContent> </SelectContent>