diff --git a/src/renderer/components/modal/modal-types/mods/mods-version-compare-modal.component.tsx b/src/renderer/components/modal/modal-types/mods/mods-version-compare-modal.component.tsx index 1a14db7b..e3584176 100644 --- a/src/renderer/components/modal/modal-types/mods/mods-version-compare-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/mods/mods-version-compare-modal.component.tsx @@ -300,11 +300,9 @@ function ModCategory({ break; } - otherAvailableMods.forEach(mod => { - if (combinedMods.findIndex(cm => cm.name === mod.name) === -1) { - combinedMods.push(mod); - } - }); + combinedMods.push(...otherAvailableMods.filter( + mod => combinedMods.findIndex(cm => cm.name === mod.name) === -1 + )); combinedMods.sort((m1, m2) => m1.name.localeCompare(m2.name)); break; @@ -335,7 +333,7 @@ function ModCategory({ }}> {combinedMods.map(mod => am.name === mod.name)} installed={installedMods.findIndex(im => im.name === mod.name) > -1} otherMod={otherAvailableMods.find(oam => oam.name === mod.name)} diff --git a/src/renderer/components/version-viewer/slides/launch/launch-slide.component.tsx b/src/renderer/components/version-viewer/slides/launch/launch-slide.component.tsx index 9bcecbf0..2e1e5e99 100644 --- a/src/renderer/components/version-viewer/slides/launch/launch-slide.component.tsx +++ b/src/renderer/components/version-viewer/slides/launch/launch-slide.component.tsx @@ -183,6 +183,7 @@ export function LaunchSlide({ version }: Props) { if(launchMod?.visible === false || !launchMod?.pinned) { return undefined; } return (