Use slots instead of purchases to check marketplace in order to avoid to make multiple request

This commit is contained in:
Arnaud 2024-11-27 11:01:13 +01:00
parent a61207cf43
commit dc8b42c03a
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -9,7 +9,7 @@ export function usePersistence(isCodexOnline: boolean) {
queryKey: [],
queryFn: async () => {
return CodexSdk.marketplace()
.purchases()
.activeSlots()
.then((data) => Promises.rejectOnError(data, report));
},