fix: satisfaction in stats
parent
da2ad0118f
commit
e0b267dc02
|
@ -118,7 +118,7 @@ export default function StatPage({ stats }: StatsDetailProps) {
|
|||
|
||||
{!!satisfaction.length &&
|
||||
// We only display the satisfaction chart if the last month's number of reviews is greater than 100
|
||||
(satisfaction.at(-1)?.total ?? 0) >= 100 && (
|
||||
(satisfaction.at(-2)?.total ?? 0) >= 100 && (
|
||||
<>
|
||||
<Spacing md />
|
||||
<H3>Satisfaction</H3>
|
||||
|
|
|
@ -38,7 +38,7 @@ export function MainIndicators({
|
|||
lastMonth.nombre.questions_répondues,
|
||||
language
|
||||
)
|
||||
const satisfactionLastMonth = satisfaction.at(-1)
|
||||
const satisfactionLastMonth = satisfaction.at(-2) || satisfaction.at(-1)
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue