app-prefs: fixing logic around enabled
@@ -10,7 +10,7 @@ export const AppPrefs = ({ match }: RouteComponentProps<{ desk: string }>) => {
const charge = useCharge(desk);
const vat = useVat(desk);
const tracking = !!vat?.arak.rail;
- const otasEnabled = vat?.arak.rail?.paused;
+ const otasEnabled = !vat?.arak.rail?.paused;
const otaSource = vat?.arak.rail?.ship;
const toggleOTAs = useKilnState((s) => s.toggleOTAs);
@@ -21,7 +21,7 @@ export const AppPrefs = ({ match }: RouteComponentProps<{ desk: string }>) => {
<h2 className="h3 mb-7">{charge?.title} Settings</h2>
<div className="space-y-3">
{tracking ? (
- <Setting on={!!otasEnabled} toggle={toggleUpdates} name="Automatic Updates">
+ <Setting on={otasEnabled} toggle={toggleUpdates} name="Automatic Updates">
<p>Automatically download and apply updates to keep {charge?.title} up to date.</p>
{otaSource && (
<p>
