Skip to content

Commit

Permalink
fix: partially fix #1818
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 3, 2023
1 parent 37cb88e commit b5dac7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function SmartMotorwaySignsMarker({ marker }: Props) {

React.useEffect(() => {
const speeds = marker.speeds ?? marker.defaultSpeeds;
if (speeds) {
if (Array.isArray(speeds)) {
setMarkerConfiguration(speeds.map((speed) => String(speed)));
}
}, [marker.speeds, marker.defaultSpeeds]);
Expand Down

0 comments on commit b5dac7e

Please sign in to comment.