log removal
This commit is contained in:
		
							parent
							
								
									25a4dbb052
								
							
						
					
					
						commit
						8f8aac05ef
					
				|  | @ -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'); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue