Skip to content

Commit 10ca05b

Browse files
committed
Removed any tsrefs.
1 parent b898242 commit 10ca05b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

frontend/src/pages/Collection.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ const CollectionPage: React.FC = () => {
6666
const [modalInfo, setModalInfo] = useState<IReleases | undefined>(undefined)
6767
const [loading, setLoading] = useState<{ page: number; pages: number }>({ page: 0, pages: 0 })
6868
const [viewState, setViewState] = useState<"collection" | "want">("collection")
69-
const [dataSorted, setDataSorted] = useState<{ collected: any; wanted: any }>()
69+
const [dataSorted, setDataSorted] = useState<{
70+
collected: [string, IReleases[]][]
71+
wanted: [string, IReleases[]][]
72+
}>()
7073
const betaBanner = import.meta.env.VITE_BETA_BANNER
7174

7275
const [{ username, token }, saveAuth, clearAuth] = useAuth()
@@ -210,7 +213,7 @@ const CollectionPage: React.FC = () => {
210213
<IonRefresher slot="fixed" onIonRefresh={handleRefresh}>
211214
<IonRefresherContent></IonRefresherContent>
212215
</IonRefresher>
213-
{viewState === "collection" && collectionData.data && (
216+
{viewState === "collection" && collectionData.data && dataSorted && (
214217
<>
215218
{layout === "grid" ? (
216219
<AlbumGrid data={dataSorted?.collected} onClickAlbum={(album) => setModalInfo(album)} />
@@ -223,7 +226,7 @@ const CollectionPage: React.FC = () => {
223226
</>
224227
)}
225228

226-
{viewState === "want" && wantData.data && (
229+
{viewState === "want" && wantData.data && dataSorted && (
227230
<>
228231
{layout === "grid" ? (
229232
<AlbumGrid data={dataSorted?.wanted} onClickAlbum={(album) => setModalInfo(album)} />

0 commit comments

Comments
 (0)