# Prevent multiple submissions of the same feedback text \(\#2740\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9f650dfa52bd19400c636b0c7be4829a89faec2b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9f650dfa52bd19400c636b0c7be4829a89faec2b

Requested commit: 9f650dfa52bd19400c636b0c7be4829a89faec2b

Commit: 9f650dfa52bd19400c636b0c7be4829a89faec2b

Tree: 66c2c84c8d777b6bf97d93cbd3aab237470c12ad

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Prevent multiple submissions of the same feedback text (#2740)

Fixes:
https://linear.app/zed-industries/issue/Z-2416/improvements-to-feedback-submission

We get a lot of duplicate messages through our in-app feedback. My best
guess is that because we do not tell the user we are doing anything, and
because submission takes awhile, users are hitting the submission button
mutliple times. This PR blocks the submission code, once an initial
submission is sent. If the original submission fails, we unblock the
submission code. The submit button is disabled and enabled accordingly
as well.

Release Notes:

- N/A
```

## Parents

- [1a8bfdfa21a619eb2360e88931213261f6132c75](https://git.cafe/gitcafe/zed/commit/1a8bfdfa21a619eb2360e88931213261f6132c75?format=markdown)

- [ede86a686ca5b48a3c4c946ed715ee118aff5506](https://git.cafe/gitcafe/zed/commit/ede86a686ca5b48a3c4c946ed715ee118aff5506?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9f650dfa52bd19400c636b0c7be4829a89faec2b?format=markdown)
