# Bug OP-12008 - Budget does not get updated if we click fast on Submit after changing the number of units

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-12008

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.0.0 |
| Observed in versions | 12.5.0 |
| Sprint | 13.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.5.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login to QA Edge 
2.  Go to a project that already has a budget with some unit costs planned
3.  Go to Budgets -\> Click on a budget -\> Update
4.  Find the Planned unit costs section and enter a new number in the Units field
5.  Click fast on Submit

### What is the buggy behavior?

  - Although we see the updated amount for the newly entered number of units, I guess it was not really updated in the background because once submitted, the result is not good; the number of units is correct, but the amount is still the old one

### What is the expected behavior?

1.  Increase the speed of updating or at least not show the amount until it's really updated so that the users don't get the wrong impression that an update was done when it wasn't.

### Important note

It's not that easy to reproduce this bug, it comes down to the speed of clicking but it was reproduced by two different users and I guess it can be a problem.

### Screenshots and other files

I have attached a video.

### Environment information

**OpenProject installation type**

- [ ] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [x] Other (please specify): QA Edge 12.5.0

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)
