Skip to content

Commit 562e75b

Browse files
committed
handle uninitialised service account state for analytics
1 parent 5884f72 commit 562e75b

File tree

1 file changed

+5
-0
lines changed
  • apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/analytics/tx-chart

1 file changed

+5
-0
lines changed

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/analytics/tx-chart/tx-chart.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ async function getTransactionsChart({
109109
);
110110

111111
if (!response.ok) {
112+
if (response.status === 401) {
113+
return [];
114+
}
115+
116+
// TODO - need to handle this error state, like we do with the connect charts
112117
throw new Error(
113118
`Error fetching transactions chart data: ${response.status} ${response.statusText}`,
114119
);

0 commit comments

Comments
 (0)