IntersectMBO / IntersectMBO/govtool

🐛 Edit dRep Form Adds Two Link Input Fields Instead of One When Clicking 'Add Link'

Open
#3,709 0 comments 0 reactions 2 assignees Claimed by @MSzalowski View on GitHub
♟️ Delegation Pillar 🐛 Bug 🕵️‍♂️ Testing
Dominant language
HTML
Stars
21
Forks
29
Avg merge
2d 22h
Merged PRs (30d)
7

Description

### Area

Delegation Pillar

### Domain

p80-z78acf3c2-zded6a792-gtw.z937eb260.rustrocks.fr

### Which wallet were you using?

_No response_

### Context

When attempting to add a new link on the "Edit dRep" form, clicking the "Add Link" button results in adding two input fields instead of the expected single input field. This issue occurs when the form is initially loaded without any link input fields.

### Steps to reproduce

1. Connect a wallet with a registered dRep with no associated links.
2. Navigate to the "Edit dRep" page.
3. Observe the absence of input fields for reference and identity links on initial load.
4. Click the "Add Link" button.
5. Note that two input fields appear instead of one.

### Actual behavior

On initial load, the "Edit dRep" form displays no input fields for reference or identity links.

![Image](https://github.com/user-attachments/assets/4e58cdb0-e802-4398-822b-7907a0371cf2)

Clicking the "Add Link" button adds two input fields simultaneously.

![Image](https://github.com/user-attachments/assets/2e6fc11f-45f4-4bbc-9cb6-8a8f4fd65eb0)

### Expected behavior

On initial load, the "Edit dRep" form should display input fields for reference or identity links.

![Image](https://github.com/user-attachments/assets/d4da88be-2284-4e80-b9ae-2ded0b44a332)

Clicking the "Add Link" button should add exactly one input field for a link.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.