Resolve NAN for divide by 0 on time tickets. IO-681
This commit is contained in:
@@ -146,7 +146,9 @@ export function TimeTicketsSummaryEmployees({
|
||||
<Statistic
|
||||
title={t("timetickets.fields.efficiency")}
|
||||
precision={1}
|
||||
value={(prodHrs / actHrs) * 100}
|
||||
value={
|
||||
actHrs === 0 || !actHrs ? "∞" : (prodHrs / actHrs) * 100
|
||||
}
|
||||
suffix={"%"}
|
||||
/>
|
||||
<Statistic
|
||||
|
||||
Reference in New Issue
Block a user