Remove double exclammation mark for function that already returns a boolean

This commit is contained in:
Lynette Lopez
2022-09-28 20:54:51 -05:00
parent a924b0e8e2
commit 68ab7d3968
@@ -551,7 +551,7 @@ export const Text = forwardRef<ExtendedTextUtils, TextProps>((props, ref) => {
}
}
// markdown interception
if (supportMarkdown && !!handleMarkdown(e)) {
if (supportMarkdown && handleMarkdown(e)) {
const start_selection = utils.current.getStartSelection();
utils.current.setSelection(start_selection);
e.preventDefault();