Skip to content

Commit

Permalink
Allow resending magic code by resetting state on modal close
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahidullah-Muffakir committed Dec 3, 2024
1 parent d9e53c7 commit 8a03bb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ValidateCodeActionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function ValidateCodeActionModal({
const hide = useCallback(() => {
clearError();
onClose?.();
firstRenderRef.current = true;
}, [onClose, clearError]);

useEffect(() => {
Expand Down

0 comments on commit 8a03bb4

Please sign in to comment.