Update index.js
This commit is contained in:
parent
1ec6c56bc8
commit
aabe2045cf
@ -35,7 +35,7 @@ export default function Home() {
|
||||
const [apiKeyInput, setApiKey] = useState('');
|
||||
|
||||
useEffect(() => {
|
||||
if (apiKeyFromEnv) {
|
||||
if (!!apiKeyFromEnv) {
|
||||
setApiKey(apiKeyFromEnv);
|
||||
}
|
||||
}, [apiKeyFromEnv]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user