From cb2d9ddd92c3c6950eeee5d0347199c6a7007163 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Mon, 25 Sep 2023 12:24:09 -0700 Subject: [PATCH] Check for null rather than 0 for unset value. --- .../device/assets/src/views/DeviceSettingsPage/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolibri/plugins/device/assets/src/views/DeviceSettingsPage/index.vue b/kolibri/plugins/device/assets/src/views/DeviceSettingsPage/index.vue index 43a5a56b0c..8c3c3069a6 100644 --- a/kolibri/plugins/device/assets/src/views/DeviceSettingsPage/index.vue +++ b/kolibri/plugins/device/assets/src/views/DeviceSettingsPage/index.vue @@ -641,7 +641,7 @@ this.allowLearnerDownloadResources = allow_learner_download_resources; this.enableAutomaticDownload = enable_automatic_download; if (set_limit_for_autodownload === false) { - if (this.freeSpace === 0) { + if (this.freeSpace === null) { this.setFreeSpace().then(() => { this.limitForAutodownload = parseInt(this.freeSpace * 0.8).toString(); });