Skip to content

Commit 6803971

Browse files
committed
fix: types
1 parent 58ba86f commit 6803971

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/taxonomy/tree-table/SaveErrorAlert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface SaveErrorAlertProps {
1515
}
1616
const SaveErrorAlert = ({ draftError, isError, isUpdateError }: SaveErrorAlertProps) => {
1717
const intl = useIntl();
18-
const hasError: boolean = (isError || isUpdateError) && !!draftError;
18+
const hasError: boolean = Boolean((isError || isUpdateError) && !!draftError);
1919
const [alertOpen, setAlertOpen] = React.useState(hasError);
2020

2121
useEffect(() => {

0 commit comments

Comments
 (0)