mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
fix: remove unnecessary initialization (#51639)
This commit is contained in:
committed by
GitHub
parent
139eecad25
commit
b7108ddeeb
@@ -333,11 +333,6 @@ function ShowClassic({
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
initializeComponent(title);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [tests, title]);
|
||||
|
||||
const initializeComponent = (title: string): void => {
|
||||
initConsole('');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user