fix: only count named dlcs
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@
|
||||
import { useState, useEffect, useMemo } from 'react';
|
||||
import { useInventoryStore } from '@/store/useInventoryStore';
|
||||
import styles from '../styles/Home.module.css';
|
||||
import { isNamedDLC } from '@/lib/utils';
|
||||
|
||||
export default function Home() {
|
||||
const store = useInventoryStore();
|
||||
@@ -27,7 +28,7 @@ export default function Home() {
|
||||
setItemsCount(items.length);
|
||||
setOfferingsCount(offerings.length);
|
||||
setCustCount(customizations.length);
|
||||
setDlcsCount(dlcs.length);
|
||||
setDlcsCount(dlcs.filter(isNamedDLC).length);
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user