diff --git a/packages/manager/src/features/VPCs/VPCCreate/FormComponents/SubnetContent.tsx b/packages/manager/src/features/VPCs/VPCCreate/FormComponents/SubnetContent.tsx index 6469b3b42be..4b92f09d285 100644 --- a/packages/manager/src/features/VPCs/VPCCreate/FormComponents/SubnetContent.tsx +++ b/packages/manager/src/features/VPCs/VPCCreate/FormComponents/SubnetContent.tsx @@ -60,11 +60,10 @@ export const SubnetContent = (props: Props) => { . - {/* TODO: figure out general subnet errors */} - {errors.subnets?.root?.message && ( + {errors.subnets?.message && ( )} diff --git a/packages/manager/src/hooks/useCreateVPC.ts b/packages/manager/src/hooks/useCreateVPC.ts index a2be9f1ea05..bef4e510c45 100644 --- a/packages/manager/src/hooks/useCreateVPC.ts +++ b/packages/manager/src/hooks/useCreateVPC.ts @@ -75,7 +75,10 @@ export const useCreateVPC = (inputs: UseCreateVPCInputs) => { } } catch (errors) { for (const error of errors) { - if (error?.field === 'subnets.label') { + if ( + error?.field === 'subnets.label' || + error?.field === 'subnets.ipv4' + ) { form.setError('subnets', { message: error.reason }); } else { form.setError(error?.field ?? 'root', { message: error.reason });