diff --git a/apps/hub/src/app/governance/[genre]/create/components/UpdateVaultWhitelistStatus.tsx b/apps/hub/src/app/governance/[genre]/create/components/UpdateVaultWhitelistStatus.tsx
index d236d0c5e..51e609b04 100644
--- a/apps/hub/src/app/governance/[genre]/create/components/UpdateVaultWhitelistStatus.tsx
+++ b/apps/hub/src/app/governance/[genre]/create/components/UpdateVaultWhitelistStatus.tsx
@@ -52,11 +52,11 @@ export const UpdateVaultWhitelistStatus = ({
label="Reward Vault Address"
value={gauge?.vault}
error={
- errors.vault === ProposalErrorCodes.REQUIRED
+ errors?.vault === ProposalErrorCodes.REQUIRED
? "A Vault Must Be Chosen"
- : errors.vault === ProposalErrorCodes.INVALID_ADDRESS
+ : errors?.vault === ProposalErrorCodes.INVALID_ADDRESS
? "Invalid Vault address."
- : errors.vault
+ : errors?.vault
}
onChange={async (e) => {
setAction({
diff --git a/apps/hub/src/app/governance/[genre]/create/components/abi-input.tsx b/apps/hub/src/app/governance/[genre]/create/components/abi-input.tsx
index 09c8dfa0d..9c59443ca 100644
--- a/apps/hub/src/app/governance/[genre]/create/components/abi-input.tsx
+++ b/apps/hub/src/app/governance/[genre]/create/components/abi-input.tsx
@@ -2,6 +2,10 @@ import { AbiParameter } from "viem";
import { InputWithLabel } from "@bera/ui/input";
import { useEffect, useState } from "react";
import { Button } from "@bera/ui/button";
+import { Label } from "@bera/ui/label";
+import { Switch } from "@bera/ui/switch";
+import { FormError } from "@bera/ui/form-error";
+import { ProposalErrorCodes } from "~/app/governance/types";
export function AbiInput({
input,
@@ -22,6 +26,9 @@ export function AbiInput({
if ("components" in input && typeof value !== "object") {
onChange({ [input.name!]: {} });
}
+ if (input.type === "string" && typeof value !== "string") {
+ onChange("");
+ }
}, [value, input]);
if ("components" in input) {
@@ -46,6 +53,7 @@ export function AbiInput({
}
/>
))}
+