Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
chore: remove unwanted conditionals (#92)
Browse files Browse the repository at this point in the history
* chore: remove unwanted conditions

* chore: remove unwanted ref check
  • Loading branch information
harish-sethuraman authored Jul 12, 2022
1 parent 2931d4b commit 23bea25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/playground/components/RuleItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ export default function RuleItem({ children }) {
const ref = useRef();

useEffect(() => {
if (ref.current) {
ref.current.scrollIntoView({ behavior: "smooth", block: "end" });
ref.current.children[1].focus();
}
ref.current.scrollIntoView({ behavior: "smooth", block: "end" });
ref.current.children[1].focus();
}, []);

return (
Expand Down
4 changes: 2 additions & 2 deletions src/playground/components/ThemeSwitcher.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23bea25

Please sign in to comment.