feat: new cockpit
This commit is contained in:
@@ -114,7 +114,7 @@ export default function MacroRegime() {
|
||||
|
||||
useEffect(() => {
|
||||
try {
|
||||
const raw = localStorage.getItem('geo-options:macro-narration')
|
||||
const raw = localStorage.getItem('openfin:macro-narration')
|
||||
if (raw) setSavedNarration(JSON.parse(raw))
|
||||
} catch {}
|
||||
}, [])
|
||||
@@ -151,7 +151,7 @@ export default function MacroRegime() {
|
||||
const text = res.data.narration ?? res.data.text ?? JSON.stringify(res.data)
|
||||
const entry = { text, at: new Date().toISOString() }
|
||||
setSavedNarration(entry)
|
||||
localStorage.setItem('geo-options:macro-narration', JSON.stringify(entry))
|
||||
localStorage.setItem('openfin:macro-narration', JSON.stringify(entry))
|
||||
} catch {
|
||||
const entry = { text: 'Error during generation — please check your OpenAI key.', at: new Date().toISOString() }
|
||||
setSavedNarration(entry)
|
||||
|
||||
Reference in New Issue
Block a user