Skip to content

Commit

Permalink
Rename form input id-name
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasmpw committed Mar 7, 2022
1 parent d8c0c5f commit 3b1a1f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/EncodeDecodeAddress/EncodeDecodeAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function EncodeDecodeAddress(): React.ReactElement {
const [isLoading, setIsLoading] = useState(false)

const handleEncodeAddress = async () => {
const input = formEncodeDecodeAddress.getFieldsValue().inputPossibleAddr?.toString().trim()
const input = formEncodeDecodeAddress.getFieldsValue().input1?.toString().trim()
if (!input) {
message.error('Please enter a valid address.')
return
Expand Down Expand Up @@ -75,7 +75,7 @@ function EncodeDecodeAddress(): React.ReactElement {
}

const handleDecodeAddress = () => {
const input = formEncodeDecodeAddress.getFieldsValue().inputPossibleAddr?.toString().trim()
const input = formEncodeDecodeAddress.getFieldsValue().input1?.toString().trim()
if (!input) {
message.error('Please enter a valid address.')
return
Expand Down Expand Up @@ -154,12 +154,12 @@ function EncodeDecodeAddress(): React.ReactElement {
layout="horizontal"
form={formEncodeDecodeAddress}
initialValues={{
inputPossibleAddr: '',
input1: '',
}}
>
<Form.Item
label="Address"
name="inputPossibleAddr"
name="input1"
rules={[
{
required: true,
Expand Down

1 comment on commit 3b1a1f6

@vercel
Copy link

@vercel vercel bot commented on 3b1a1f6 Mar 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.