Skip to content

Commit

Permalink
Small improvements on the poll creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jul 18, 2024
1 parent d2f16a9 commit c707e48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/pages/CreatePollPage/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export const useCreatePollData = () => {
name: "xchainAddress",
label: "Address",
visible: accessControlMethod.value === "acl_xchain",
placeholder: "Token address on chain",
required: [true, "Please specify the address on the other chain that is the key to this poll!"],
validators: value => (value && !isValidAddress(value)) ? "This doesn't seem to be a valid address." : undefined,
})
Expand Down Expand Up @@ -238,7 +239,7 @@ export const useCreatePollData = () => {
accessControlMethod,
tokenAddress,
addressWhitelist,
chain, xchainAddress,
[chain, xchainAddress],
voteWeighting,
gasFree,
gasFreeExplanation,
Expand Down

0 comments on commit c707e48

Please sign in to comment.