Skip to content

Commit

Permalink
fix: budget invite duplicate text entry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonkeating committed Feb 10, 2025
1 parent 1010d7d commit 951e815
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const InviteModalContent = ({
return;
}
const emails = value.split('\n').map((email) => email.trim()).filter((email) => email.length > 0);
setLearnerEmails(prev => [...prev, ...emails]);
setLearnerEmails(emails);
}, [onEmailAddressesChange]);

const debouncedHandleEmailAddressesChanged = useMemo(
Expand Down

0 comments on commit 951e815

Please sign in to comment.