Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
LLLE_Project
Ecolyo
Commits
a735e14d
Commit
a735e14d
authored
Oct 28, 2021
by
Guilhem CARRON
Browse files
fix(conso): remove lastdatadate check from multifluid
parent
2e6eaf63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/Home/ConsumptionView.tsx
View file @
a735e14d
...
...
@@ -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
)
...
...
Guilhem CARRON
@gcarron
mentioned in commit
fb6ff53b
·
Oct 28, 2021
mentioned in commit
fb6ff53b
mentioned in commit fb6ff53b0623a52473b60467a98d8b0e7bd4fac4
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment