log removal
This commit is contained in:
@@ -249,7 +249,6 @@ const Home = ({
|
|||||||
// ON LOAD --------------------------------------------
|
// ON LOAD --------------------------------------------
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('initialize', serverSideApiKeyIsSet);
|
|
||||||
const theme = localStorage.getItem('theme');
|
const theme = localStorage.getItem('theme');
|
||||||
if (theme) {
|
if (theme) {
|
||||||
dispatch({ field: 'lightMode', value: theme as 'dark' | 'light' });
|
dispatch({ field: 'lightMode', value: theme as 'dark' | 'light' });
|
||||||
@@ -258,7 +257,6 @@ const Home = ({
|
|||||||
const apiKey = localStorage.getItem('apiKey');
|
const apiKey = localStorage.getItem('apiKey');
|
||||||
|
|
||||||
if (serverSideApiKeyIsSet) {
|
if (serverSideApiKeyIsSet) {
|
||||||
console.log('trigger key', apiKey);
|
|
||||||
dispatch({ field: 'apiKey', value: '' });
|
dispatch({ field: 'apiKey', value: '' });
|
||||||
|
|
||||||
localStorage.removeItem('apiKey');
|
localStorage.removeItem('apiKey');
|
||||||
|
|||||||
Reference in New Issue
Block a user