Commit a735e14d authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(conso): remove lastdatadate check from multifluid

parent 2e6eaf63
......@@ -39,9 +39,10 @@ const ConsumptionView: React.FC<ConsumptionViewProps> = ({
/* eslint-disable @typescript-eslint/no-non-null-assertion */
const lastDataDate = fluidStatus[fluidType].lastDataDate
? fluidStatus[fluidType].lastDataDate!.toLocaleString()
: ''
const lastDataDate =
fluidType !== FluidType.MULTIFLUID && fluidStatus[fluidType].lastDataDate
? fluidStatus[fluidType].lastDataDate!.toLocaleString()
: ''
const defineHeaderHeight = useCallback((height: number) => {
setHeaderHeight(height)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment