Skip to content

Commit

Permalink
SSGSO-5: Add phone number by default
Browse files Browse the repository at this point in the history
  • Loading branch information
reagan-meant committed Oct 28, 2024
1 parent 6b7bb67 commit 4be7651
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ const SendSmsForm: React.FC<SendSmsFormProps> = ({
} = methods;

useEffect(() => {
patient?.telecom[0]?.value ? methods.setValue('to', patient?.telecom[0]?.value) : null;
promptBeforeClosing(() => isDirty);
}, [isDirty, promptBeforeClosing]);
}, [isDirty, promptBeforeClosing, patient]);

const onSubmit = useCallback(
(data: SmsFormData, event: any) => {
Expand Down

0 comments on commit 4be7651

Please sign in to comment.