We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82094f commit cefd6b2Copy full SHA for cefd6b2
src/utils/storage.ts
@@ -1,12 +1,7 @@
1
import { MountDetails } from "~/types"
2
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
- )
+export const showDiskUsage = (details?: MountDetails) => {
+ return details?.total_space > 0
10
}
11
12
export const toReadableUsage = (details: MountDetails) => {
0 commit comments