Skip to content

Commit

Permalink
web-fix: Reset the error when closing a popup, closes #152
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Petrov <[email protected]>
  • Loading branch information
mike-petrov committed Feb 5, 2024
1 parent d008e39 commit 5691586
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,10 @@ export const App = () => {
{!isLoadingForm && (
<Button
color="gray"
onClick={onModal}
onClick={() => {
onModal();
setError({ active: false, type: [], text: '' });
}}
style={{ marginRight: 10 }}
>
No
Expand Down Expand Up @@ -1252,7 +1255,10 @@ export const App = () => {
{!isLoadingForm && (
<Button
color="gray"
onClick={onModal}
onClick={() => {
onModal();
setError({ active: false, type: [], text: '' });
}}
style={{ marginRight: 10 }}
>
No
Expand Down

0 comments on commit 5691586

Please sign in to comment.