Skip to content

Commit 594814e

Browse files
committed
chore: update dispatch-post difficulty level name mapping
1 parent 7476a0e commit 594814e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/map/-components/DispatchPostMarker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { MdOutlineLocationOn, MdOutlinePsychology, MdPersonOutline } from "react
1111
import { Marker, Popup, Tooltip } from "react-leaflet";
1212

1313
const mapDifficultyName = (difficulty: number): string => {
14-
const difficultyNames = ["Very Easy", "Easy", "Normal", "Advanced", "Hard"];
15-
return difficultyNames.at(difficulty - 1) ?? `${difficulty}`;
14+
const difficultyNames = ["Very Easy", "Easy", "Intermediate", "Advanced", "Hard", "Expert"];
15+
return difficultyNames.at(difficulty) ?? `${difficulty}`;
1616
};
1717

1818
const formatUserName = (user?: SimRailUserDto): string | undefined => {

0 commit comments

Comments
 (0)