Skip to content

Commit

Permalink
chore: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
letwebdev committed Feb 21, 2024
1 parent 21cc8f6 commit 9157239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stores/fetchData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const useFetchingDataStore = defineStore("fetchData", () => {
}
}
function getItemIds(liveData: LiveData): number[] {
console.log("liveData:", liveData)
// console.log("liveData:", liveData)
let itemIds: number[]

if (typeof liveData === "number") {
Expand Down Expand Up @@ -130,7 +130,9 @@ export const useFetchingDataStore = defineStore("fetchData", () => {
coreDataStore.items.push(item)
updateCount(item)
})
.catch((error) => console.error(`Error fetching data: ${error.message}`))
.catch((error) => {
console.error(`Error fetching data: ${error.message}`)
})
}
function updateCount(item: Item) {
for (const statisticsItem of statisticsOfFetchedLiveData.value)
Expand Down

0 comments on commit 9157239

Please sign in to comment.