mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-05 08:16:16 +02:00
fix(UI): hide 'Start here!' badge after Easy Setup is completed
The KV store returns ui.hasVisitedEasySetup as boolean true, but the comparison checked against string 'true'. Since true !== 'true', the badge was always shown even after completing Easy Setup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8c5066c3f0
commit
8515c7d56c
|
|
@ -97,7 +97,7 @@ export default function Home(props: {
|
||||||
const { data: easySetupVisited } = useSystemSetting({
|
const { data: easySetupVisited } = useSystemSetting({
|
||||||
key: 'ui.hasVisitedEasySetup'
|
key: 'ui.hasVisitedEasySetup'
|
||||||
})
|
})
|
||||||
const shouldHighlightEasySetup = easySetupVisited?.value ? easySetupVisited?.value !== 'true' : false
|
const shouldHighlightEasySetup = easySetupVisited?.value ? String(easySetupVisited.value) !== 'true' : false
|
||||||
|
|
||||||
// Add installed services (non-dependency services only)
|
// Add installed services (non-dependency services only)
|
||||||
props.system.services
|
props.system.services
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user