mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Only import what's needed from lodash
This commit is contained in:
parent
a93e2b670f
commit
46e03b454d
@ -1,5 +1,5 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import _ from "lodash";
|
||||
import { find } from "lodash";
|
||||
|
||||
import {
|
||||
Box,
|
||||
@ -57,7 +57,7 @@ export function ProgramsRoot(): React.ReactElement {
|
||||
}
|
||||
|
||||
const getProgCompletion = (name: string): number => {
|
||||
const programFile = _.find(player.getHomeComputer().programs, p => {
|
||||
const programFile = find(player.getHomeComputer().programs, p => {
|
||||
return (p.startsWith(name) && p.endsWith("%-INC"));
|
||||
});
|
||||
if (!programFile) return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user