Open EPortman opened 3 months ago
For QA
This ticket is to prevent errors in the web developer tools - network tab when approving NRs. Before the code changes when an NR was approved a 401 UNAUTHORIZED error was occurring after the approval request that was successful. This hapened on both the approve and quick approve button. This error did not have an effect on the application as the first approval worked.
After the code changes this error is no longer seen (just the successful one).
When pressing the approval or quick approval buttons, there is a 401 error that appears in the console and two get requests are sent.
It seems the problem is here. app/store/examine/index.ts (parseNr)
The choice gets updated to undefined, and then when it gets to the last if check here:
It will attempt next name choice since it is undefined - which should not happen on approvals. It really looks like simply removing that first block of code setting the currentNameObj to undefined will fix this problem.