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

fix: cross icon on fluidButton for multifluid

parent 10328a41
......@@ -83,7 +83,9 @@ const FluidButton: React.FC<FluidButtonProps> = ({
if (
(fluidType !== FluidType.MULTIFLUID && isConnected() && isErrored()) ||
(fluidType !== FluidType.MULTIFLUID && isConnected() && isOutdated()) ||
(isConnected() && !fluidStatus[fluidType]?.lastDataDate)
(isConnected() &&
fluidStatus[fluidType] &&
!fluidStatus[fluidType].lastDataDate)
) {
setShowError(true)
}
......
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