acquisitions in tracking

This commit is contained in:
2024-06-02 08:16:20 +02:00
parent 0a82fca6d3
commit c77a6ff811
3 changed files with 11 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ export const useAcquiredTypesStore = defineStore('market-acquisition', () => {
await marbasAxiosInstance.put(`${endpoint}${item.id}/`, item);
log.info(`Acquired type ${item.id} remaining: ${item.remaining}`, item);
};
marbasAxiosInstance.get<RawMarbasAcquiredType[]>(endpoint).then(res => acquiredTypes.value = res.data.map(mapRawMarbasAcquiredType));
return { acquiredTypes: types, addAcquiredType, removeAcquiredType };