diff --git a/tea/components/header.go b/tea/components/header.go index f1ea62a..72cd611 100644 --- a/tea/components/header.go +++ b/tea/components/header.go @@ -47,10 +47,14 @@ func (h headerComponent) View() string { out += "\n" out += h.labelStyle.Render("Vanilla: ") - if h.root.GetCurrentInstallation().Vanilla { - out += "On" + if h.root.GetCurrentInstallation() != nil { + if h.root.GetCurrentInstallation().Vanilla { + out += "On" + } else { + out += "Off" + } } else { - out += "Off" + out += "N/A" } return lipgloss.NewStyle().Margin(1, 0).Render(out)