diff --git a/client/src/pages/settings.tsx b/client/src/pages/settings.tsx index 5805496..e4a5ee0 100644 --- a/client/src/pages/settings.tsx +++ b/client/src/pages/settings.tsx @@ -154,6 +154,20 @@ export default function SettingsPage() { resolver: zodResolver(customerFormSchema), defaultValues: { name: currentCustomer?.name || "", + description: currentCustomer?.description || "", + email: currentCustomer?.email || "", + phone: currentCustomer?.phone || "", + address: currentCustomer?.address || "", + city: currentCustomer?.city || "", + state: currentCustomer?.state || "", + zipCode: currentCustomer?.zipCode || "", + country: currentCustomer?.country || "", + website: currentCustomer?.website || "", + industry: currentCustomer?.industry || "", + notes: currentCustomer?.notes || "", + accountManager: currentCustomer?.accountManager || "", + billingEmail: currentCustomer?.billingEmail || "", + billingAddress: currentCustomer?.billingAddress || "", isActive: currentCustomer?.isActive, }, }); @@ -183,6 +197,20 @@ export default function SettingsPage() { if (currentCustomer) { customerForm.reset({ name: currentCustomer.name, + description: currentCustomer.description || "", + email: currentCustomer.email || "", + phone: currentCustomer.phone || "", + address: currentCustomer.address || "", + city: currentCustomer.city || "", + state: currentCustomer.state || "", + zipCode: currentCustomer.zipCode || "", + country: currentCustomer.country || "", + website: currentCustomer.website || "", + industry: currentCustomer.industry || "", + notes: currentCustomer.notes || "", + accountManager: currentCustomer.accountManager || "", + billingEmail: currentCustomer.billingEmail || "", + billingAddress: currentCustomer.billingAddress || "", isActive: currentCustomer.isActive, }); } @@ -319,7 +347,7 @@ export default function SettingsPage() { return (