Skip to content

Commit abb07e4

Browse files
committed
bugfix: fix the chat and search revenue graphs
1 parent 326af9d commit abb07e4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clients/trieve-shopify-extension/app/components/analytics/chat/ChatRevenue.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ export const ChatRevenue = ({
2020
return (
2121
<GraphComponent
2222
loading={isLoading}
23-
topLevelMetric={data?.avg_search_revenue}
23+
topLevelMetric={data?.avg_chat_revenue}
2424
graphData={data?.points}
2525
granularity={granularity}
2626
date_range={filters.date_range}
2727
dataType="currency"
2828
xAxis={"time_stamp"}
2929
yAxis={"point"}
30-
label="Average Search Revenue"
31-
tooltipContent="The average revenue that users spend on the search."
30+
label="Average Chat Revenue"
31+
tooltipContent="The average revenue generated from user chat requests."
3232
/>
3333
);
3434
};

clients/trieve-shopify-extension/app/components/analytics/search/SearchRevenue.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ export const SearchRevenue = ({
3232
/>
3333
);
3434
};
35+

0 commit comments

Comments
 (0)