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 e1e4d55 commit 9b59ae0Copy full SHA for 9b59ae0
src/containers/Storage/Storage.js
@@ -227,8 +227,9 @@ class Storage extends React.Component {
227
return label;
228
}
229
230
- if (count.total === flatListStorageEntities.length) {
231
- label += count.total;
+ // count.total can be missing in old versions
+ if (flatListStorageEntities.length === Number(count.total) || !count.total) {
232
+ label += flatListStorageEntities.length;
233
} else {
234
label += `${flatListStorageEntities.length} of ${count.total}`;
235
0 commit comments