Merge pull request #5319 from urbit/hm/fix-ship-null-ref

system-prefs: fixing non-null assertion errors on null rail
This commit is contained in:
Hunter Miller 2021-10-12 10:46:10 -05:00 committed by GitHub
commit f65607429b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ export const SystemUpdatePrefs = () => {
);
const base = useVat('base');
const otasEnabled = base && !(base.arak?.rail?.paused ?? true);
const otaSource = base && base.arak.rail!.ship!;
const otaSource = base && base.arak.rail?.ship;
const toggleBase = useCallback((on: boolean) => toggleOTAs('base', on), [toggleOTAs]);