Skip to content

Commit

Permalink
fix: renterd hide 0 file health
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Jan 17, 2024
1 parent f87af37 commit a3b3fb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cool-walls-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'renterd': minor
---

The file stats now only show health once there is more than 0 bytes of file data.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export function FilesStatsMenuHealth() {
isDirectory: true,
})

if (!stats.data) {
const noDataYet = stats.data?.totalObjectsSize === 0
if (!stats.data || noDataYet) {
return null
}

Expand Down

0 comments on commit a3b3fb8

Please sign in to comment.