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