Skip to content

Commit

Permalink
Change return syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Sep 11, 2023
1 parent d61fe7b commit 3efa284
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/DomUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {BlurActiveElement, GetActiveElement} from './types';
const blurActiveElement: BlurActiveElement = () => {
const activeElement = document.activeElement as HTMLElement;

if (!activeElement?.blur) return;
if (!activeElement?.blur) {
return;
}

activeElement.blur();
};
Expand Down

0 comments on commit 3efa284

Please sign in to comment.