diff options
Diffstat (limited to 'frontend/src/pages/Maplist.tsx')
| -rw-r--r-- | frontend/src/pages/Maplist.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index 7b4ce06..ecea3e1 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx | |||
| @@ -123,7 +123,9 @@ const Maplist: React.FC = () => { | |||
| 123 | )?.portal_count | 123 | )?.portal_count |
| 124 | } | 124 | } |
| 125 | </h2> | 125 | </h2> |
| 126 | <h3>portals</h3> | 126 | <h3>{game?.category_portals.find( |
| 127 | (obj) => obj.category.id === catNum + 1)!.portal_count == 1 ? "portal" : "portals" | ||
| 128 | }</h3> | ||
| 127 | </div> | 129 | </div> |
| 128 | <div className="game-header-categories"> | 130 | <div className="game-header-categories"> |
| 129 | {game?.category_portals.map((cat, index) => ( | 131 | {game?.category_portals.map((cat, index) => ( |
| @@ -162,7 +164,7 @@ const Maplist: React.FC = () => { | |||
| 162 | <span>{map.is_disabled ? map.category_portals[0].portal_count : map.category_portals.find( | 164 | <span>{map.is_disabled ? map.category_portals[0].portal_count : map.category_portals.find( |
| 163 | (obj) => obj.category.id === catNum + 1 | 165 | (obj) => obj.category.id === catNum + 1 |
| 164 | )?.portal_count}</span> | 166 | )?.portal_count}</span> |
| 165 | <span>portals</span> | 167 | <span>{map.category_portals.find((obj) => obj.category.id === catNum + 1)?.portal_count == 1 ? "portal" : "portals"}</span> |
| 166 | </div> | 168 | </div> |
| 167 | </div> | 169 | </div> |
| 168 | <div className="difficulty-bar"> | 170 | <div className="difficulty-bar"> |