Skip to content

Commit

Permalink
don't show mayor error message
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-luger committed Nov 6, 2023
1 parent 509290c commit 0efab4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion api/ApiHelper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,8 @@ export function initAPI(returnSSRResponse: boolean = false): API {
resolve(data.map(parseMayorData))
},
reject: (error: any) => {
apiErrorHandler(RequestType.MAYOR_DATA, error, { start, end })
// temporarly don't show mayor errors
//apiErrorHandler(RequestType.MAYOR_DATA, error, { start, end })
reject(error)
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ function AuctionHousePriceGraph(props: Props) {
let mayorData = await api.getMayorData(minDate, maxDate)
setMayorData(mayorData)
applyMayorDataToChart(chartOptions, mayorData, 4)
} catch (e) {
toast.error("Mayors couldn't be loaded")
}
} catch (e) {}

setAvgPrice(Math.round(priceSum / prices.length))
setNoDataFound(prices.length === 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ function BazaarPriceGraph(props: Props) {
try {
mayorData = await api.getMayorData(prices[0].timestamp, prices[prices.length - 1].timestamp)
} catch {
toast.error("Mayor data could'n be loaded")
mayorData = []
}
if (!mounted || currentLoadingString !== JSON.stringify({ tag: props.item.tag, fetchspan })) {
Expand Down

0 comments on commit 0efab4d

Please sign in to comment.