Skip to content

Commit

Permalink
Check for null rather than 0 for unset value.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles authored Sep 25, 2023
1 parent cfbf817 commit cb2d9dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit cb2d9dd

Please sign in to comment.