Update index.js

This commit is contained in:
Malhar Ujawane 2024-08-30 08:35:40 -07:00 committed by GitHub
parent 1ec6c56bc8
commit aabe2045cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ export default function Home() {
const [apiKeyInput, setApiKey] = useState('');
useEffect(() => {
if (apiKeyFromEnv) {
if (!!apiKeyFromEnv) {
setApiKey(apiKeyFromEnv);
}
}, [apiKeyFromEnv]);