From ed57b5e023fd01383fb50e56f80015bb093b0a67 Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Thu, 6 Oct 2022 08:16:48 -0700 Subject: [PATCH] CEC-2545 Fix can signal view on map (#216) --- src/components/VehicleMap/popup.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/VehicleMap/popup.jsx b/src/components/VehicleMap/popup.jsx index 199d3bb..60d3f34 100644 --- a/src/components/VehicleMap/popup.jsx +++ b/src/components/VehicleMap/popup.jsx @@ -9,8 +9,14 @@ import Typography from "@material-ui/core/Typography"; import useStyles from "../useStyles"; import DigitalTwin from "../DigitalTwin"; import CANSignals from "../Cars/CANSignals"; +import { useUserContext } from "../Contexts/UserContext"; const VehiclePopUp = (props) => { + const { + token: { + idToken: { jwtToken: token }, + }, + } = useUserContext(); const classes = useStyles(); const [viewCAN, setViewCAN] = useState(false); const { vin, online, onClose, onlineHMI } = props; @@ -46,7 +52,7 @@ const VehiclePopUp = (props) => {

ICC Connected: {onlineHMI?.toString()}

- {viewCAN && } + {viewCAN && } {!viewCAN && }