diff --git a/src/components/api-metrics-graph/index.js b/src/components/api-metrics-graph/index.js index 935425b23..a70d316a6 100644 --- a/src/components/api-metrics-graph/index.js +++ b/src/components/api-metrics-graph/index.js @@ -30,11 +30,11 @@ function ApiMetricsGraph({ graph }) { return "⚠️ Error Fetching API Metrics"; } - if (status !== 'succeeded') { + if (status !== 'success') { return null; } - if (status === 'succeeded' && data.heartbeatList["1"] === 0) { + if (status === 'success' && data.heartbeatList["1"] === 0) { return `⚠️ ${t('No data')}`; } diff --git a/src/components/price-graph/index.js b/src/components/price-graph/index.js index ddfbe0354..c5f0912f3 100644 --- a/src/components/price-graph/index.js +++ b/src/components/price-graph/index.js @@ -45,7 +45,7 @@ function PriceGraph({ item, itemId }) { dayTicks: [], tickLabels: {}, }; - if (status !== 'succeeded' || !data?.data?.historicalItemPrices) { + if (status !== 'success' || !data?.data?.historicalItemPrices) { return returnValues; } returnValues.dayTicks = data.data.historicalItemPrices.reduce((all, current) => { @@ -121,11 +121,11 @@ function PriceGraph({ item, itemId }) { height = 1280; } - if (status !== 'succeeded' || !data?.data?.historicalItemPrices) { + if (status !== 'success' || !data?.data?.historicalItemPrices) { return null; } - if (status === 'succeeded' && data.data.historicalItemPrices.length < 2) { + if (status === 'success' && data.data.historicalItemPrices.length < 2) { return t('No data'); } diff --git a/src/components/server-status/index.js b/src/components/server-status/index.js index fad6512ec..60c238d19 100644 --- a/src/components/server-status/index.js +++ b/src/components/server-status/index.js @@ -28,11 +28,11 @@ function ServerStatus() { ); const { t } = useTranslation(); - if (status !== 'succeeded' || !data.data.status) { + if (status !== 'success' || !data.data.status) { return null; } - if (status === 'succeeded' && data.data.status.length === 0) { + if (status === 'success' && data.data.status.length === 0) { return t('No data'); }