Skip to content

Commit

Permalink
Fix for keys_ok and keys_bad both appearing. Re: #62
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Feb 3, 2023
1 parent edbd434 commit ee27bc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions renderer/renderJS/assist_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ function doBadgeSet(originalBadges, thisMod, thisCollection, newMods, bindConfli
theseBadges.push('nonmh')
}

if ( theseBadges.includes('keys_bad') && theseBadges.includes('keys_ok') ) {
const brokenIdx = theseBadges.indexOf('keys_ok')
theseBadges.splice(brokenIdx, brokenIdx !== -1 ? 1 : 0)
}

if ( theseBadges.includes('broken') && theseBadges.includes('notmod') ) {
const brokenIdx = theseBadges.indexOf('broken')
theseBadges.splice(brokenIdx, brokenIdx !== -1 ? 1 : 0)
Expand Down

0 comments on commit ee27bc9

Please sign in to comment.