fix: popup configured check — also detect apiKeyEnc (encrypted key)
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 49s

This commit is contained in:
Forge
2026-03-06 15:12:24 +08:00
parent 88855ba53b
commit 58b6728332
2 changed files with 2 additions and 2 deletions

View File

@@ -194,8 +194,8 @@ function Popup() {
// Load config + restore session input
useEffect(() => {
safeStorageGet(chrome.storage.local, ['provider', 'apiKey', 'model'], (result) => {
if (result.apiKey) {
safeStorageGet(chrome.storage.local, ['provider', 'apiKey', 'apiKeyEnc', 'model'], (result) => {
if (result.apiKey || result.apiKeyEnc) {
setConfigured(true);
setProvider(result.provider || 'openai');
setModel(result.model || '');