Skip to content

Commit cefd6b2

Browse files
authored
fix: show disk usage if disk is entirely full (again) (#277)
1 parent b82094f commit cefd6b2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/utils/storage.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { MountDetails } from "~/types"
22

3-
export const showDiskUsage = (details: MountDetails | undefined) => {
4-
return (
5-
details &&
6-
details.total_space &&
7-
details.free_space &&
8-
details.total_space > 0
9-
)
3+
export const showDiskUsage = (details?: MountDetails) => {
4+
return details?.total_space > 0
105
}
116

127
export const toReadableUsage = (details: MountDetails) => {

0 commit comments

Comments
 (0)