clear other field when toggling reason

This commit is contained in:
Ryan Vazquez
2021-02-10 11:49:13 -05:00
parent 7ae38baed1
commit 8c5a71fff6
@@ -66,6 +66,9 @@ export const AlertDismissForm = forwardRef<
};
const onReasonChange = (_: ChangeEvent<HTMLInputElement>, value: string) => {
if (other) {
setOther(null);
}
setReason(value as AlertDismissReason);
};