mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
Update src/Faction/ui/FactionsRoot.tsx
This commit is contained in:
parent
796881f35d
commit
4c862ef313
@ -82,7 +82,8 @@ export function FactionsRoot(props: IProps): React.ReactElement {
|
||||
}
|
||||
|
||||
const allFactions = Object.values(FactionNames).map(faction => faction as string)
|
||||
const allJoinedFactions = props.player.factions.sort((a, b) =>
|
||||
const allJoinedFactions = props.player.factions.slice(0);
|
||||
allJoinedFactions.sort((a, b) =>
|
||||
allFactions.indexOf(a) - allFactions.indexOf(b));
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user