fix dark bg bug

This commit is contained in:
Kalle (Sendou)
2020-11-28 14:01:35 +02:00
parent 43b13b992c
commit 54fc9deef7
2 changed files with 15 additions and 16 deletions

View File

@@ -7,6 +7,7 @@
- [x] Builds link to /analyzer
- [x] Check that user page fallback / redirect works
- [x] Builds mode icons
- [ ] Fix db hitting connection limit
- [ ] Script to parse data from Top 500 .json to the DB
- [ ] Top 500 Leaderboards
- [ ] Localization

View File

@@ -32,22 +32,20 @@ const WeaponSelector: React.FC<Props> = ({
<option hidden value="NO_VALUE">
{t`Select weapon`}
</option>
{weaponsWithHeroCategorizedLocalized.map((wpnCategory) => (
<optgroup key={wpnCategory.name} label={i18n._(wpnCategory.name)}>
{wpnCategory.weapons.map((wpn) => {
if (
excludeAlt &&
(wpn.includes("Hero") || wpn.includes("Octo Shot"))
)
return null;
return (
<option key={wpn} value={wpn}>
{i18n._(wpn)}
</option>
);
})}
</optgroup>
))}
{weaponsWithHeroCategorizedLocalized.flatMap((wpnCategory) =>
wpnCategory.weapons.map((wpn) => {
if (
excludeAlt &&
(wpn.includes("Hero") || wpn.includes("Octo Shot"))
)
return null;
return (
<option key={wpn} value={wpn}>
{i18n._(wpn)}
</option>
);
})
)}
</Select>
</>
);