fix: popup configured check — also detect apiKeyEnc (encrypted key)
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 49s
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 49s
This commit is contained in:
@@ -194,8 +194,8 @@ function Popup() {
|
|||||||
|
|
||||||
// Load config + restore session input
|
// Load config + restore session input
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
safeStorageGet(chrome.storage.local, ['provider', 'apiKey', 'model'], (result) => {
|
safeStorageGet(chrome.storage.local, ['provider', 'apiKey', 'apiKeyEnc', 'model'], (result) => {
|
||||||
if (result.apiKey) {
|
if (result.apiKey || result.apiKeyEnc) {
|
||||||
setConfigured(true);
|
setConfigured(true);
|
||||||
setProvider(result.provider || 'openai');
|
setProvider(result.provider || 'openai');
|
||||||
setModel(result.model || '');
|
setModel(result.model || '');
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user