Skip to content
Snippets Groups Projects
Commit 663b6eb2 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

chore: fix fluidType type error

parent c55012aa
Branches
Tags
1 merge request!11623.0 Release
...@@ -62,7 +62,7 @@ import './konnectorViewerCard.scss' ...@@ -62,7 +62,7 @@ import './konnectorViewerCard.scss'
interface KonnectorViewerCardProps { interface KonnectorViewerCardProps {
showOfflineData: boolean showOfflineData: boolean
fluidType: FluidType fluidType: Exclude<FluidType, FluidType.MULTIFLUID>
} }
const KonnectorViewerCard = ({ const KonnectorViewerCard = ({
...@@ -98,10 +98,9 @@ const KonnectorViewerCard = ({ ...@@ -98,10 +98,9 @@ const KonnectorViewerCard = ({
[client] [client]
) )
const lastDataDate = const lastDataDate = currentFluidStatus.lastDataDate
fluidType !== FluidType.MULTIFLUID && currentFluidStatus.lastDataDate ? currentFluidStatus.lastDataDate.toLocaleString() + fluidType
? currentFluidStatus.lastDataDate.toLocaleString() + fluidType : fluidType
: fluidType
const iconType = getParamPicto(currentFluidStatus.fluidType) const iconType = getParamPicto(currentFluidStatus.fluidType)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment