File tree Expand file tree Collapse file tree
client/components/application Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,8 +151,11 @@ export const ApplicationStatsChart: React.FC<ApplicationStatsChartProps> =
151151
152152 < StatCard
153153 label = { t ( 'Sessions' ) }
154- curr = { statsData . sessions . total }
155- diff = { statsData . sessions . diff }
154+ curr = { data ?. currentTotalSessionCount || 0 }
155+ diff = {
156+ ( data ?. currentTotalSessionCount || 0 ) -
157+ ( data ?. previousTotalSessionCount || 0 )
158+ }
156159 />
157160
158161 < StatCard
Original file line number Diff line number Diff line change @@ -322,6 +322,8 @@ export const applicationRouter = router({
322322 z . object ( {
323323 current : eventStatsQueryResultItemSchema . array ( ) ,
324324 previous : eventStatsQueryResultItemSchema . array ( ) ,
325+ currentTotalSessionCount : z . number ( ) ,
326+ previousTotalSessionCount : z . number ( ) ,
325327 } )
326328 )
327329 . query ( async ( { ctx, input } ) => {
You can’t perform that action at this time.
0 commit comments