From 9407dbf387fb4d1ebb56375cdd8c85cd35527cd7 Mon Sep 17 00:00:00 2001 From: P R <25353498+BigUstad@users.noreply.github.com> Date: Tue, 9 Jun 2020 15:05:39 -0700 Subject: [PATCH] display proper used space based on disk usage (#9551) Fixes #9346 --- browser/app/js/browser/StorageInfo.js | 7 ++----- browser/app/js/browser/__tests__/StorageInfo.test.js | 6 +++--- browser/app/js/browser/__tests__/actions.test.js | 6 ++++-- browser/app/js/browser/__tests__/reducer.test.js | 10 +++------- browser/app/js/browser/actions.js | 3 +-- browser/app/js/browser/reducer.js | 2 +- cmd/web-handlers.go | 7 ++++--- 7 files changed, 18 insertions(+), 23 deletions(-) diff --git a/browser/app/js/browser/StorageInfo.js b/browser/app/js/browser/StorageInfo.js index 67f51e238..06ff08a15 100644 --- a/browser/app/js/browser/StorageInfo.js +++ b/browser/app/js/browser/StorageInfo.js @@ -26,13 +26,10 @@ export class StorageInfo extends React.Component { } render() { const { used } = this.props.storageInfo - - if (!used) { + if (!used || used == 0) { return