diff --git a/src/components/map/MapToken.js b/src/components/map/MapToken.js index 0622457..e26f4b1 100644 --- a/src/components/map/MapToken.js +++ b/src/components/map/MapToken.js @@ -227,6 +227,15 @@ function MapToken({ return null; } + // Token name is used by on click to find whether a token is a vehicle + let tokenName = ""; + if (token) { + tokenName = token.isVehicle ? "vehicle" : "token"; + } + if (tokenState && tokenState.locked) { + tokenName = tokenName + "-locked"; + } + return (