diff --git a/apps/comments-ui/src/App.js b/apps/comments-ui/src/App.js index 144739edce..5d0e76423e 100644 --- a/apps/comments-ui/src/App.js +++ b/apps/comments-ui/src/App.js @@ -7,22 +7,15 @@ import AppContext from './AppContext'; import {hasMode} from './utils/check-mode'; import setupGhostApi from './utils/api'; import CommentsBox from './components/CommentsBox'; -import {useEffect} from 'react'; import Loading from './components/Loading'; -function AuthFrame({adminUrl, onLoad, initStatus}) { - useEffect(function () { - if (initStatus !== 'success') { - onLoad(); - } - }, [onLoad, initStatus]); - +function AuthFrame({adminUrl, onLoad}) { const iframeStyle = { display: 'none' }; return ( - + ); }