From 46e03b454d1f562bfb160fa3ee5fa06dd7124a32 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Sat, 12 Mar 2022 11:03:33 -0600 Subject: [PATCH] Only import what's needed from lodash --- src/Programs/ui/ProgramsRoot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Programs/ui/ProgramsRoot.tsx b/src/Programs/ui/ProgramsRoot.tsx index e67c74014..7c9f29344 100644 --- a/src/Programs/ui/ProgramsRoot.tsx +++ b/src/Programs/ui/ProgramsRoot.tsx @@ -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;