Skip to content

Commit

Permalink
fix: stop spinner when email validation by Promise fails
Browse files Browse the repository at this point in the history
  • Loading branch information
hwonda committed Mar 19, 2024
1 parent 5743a0a commit d3d0ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react-multi-email/ReactMultiEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ export function ReactMultiEmail(props: IReactMultiEmailProps) {
setSpinning(true);
if ((await validateEmail?.(value)) === true) {
addEmails(value);
setSpinning(false);
} else {
inputValue = value;
}
setSpinning(false);
}
} else {
inputValue = value;
Expand Down

0 comments on commit d3d0ec5

Please sign in to comment.