diff --git a/package-lock.json b/package-lock.json
index 1a5490e8..a6655802 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -25,7 +25,6 @@
"clsx": "^2.1.0",
"cmdk": "^0.2.1",
"dayjs": "^1.11.10",
- "lodash": "^4.17.21",
"lucide-react": "^0.335.0",
"react-qr-code": "^2.0.12",
"storybook-dark-mode": "^3.0.1",
diff --git a/package.json b/package.json
index d16a8086..5fef7181 100644
--- a/package.json
+++ b/package.json
@@ -100,7 +100,6 @@
"clsx": "^2.1.0",
"cmdk": "^0.2.1",
"dayjs": "^1.11.10",
- "lodash": "^4.17.21",
"lucide-react": "^0.335.0",
"react-qr-code": "^2.0.12",
"storybook-dark-mode": "^3.0.1",
diff --git a/src/components/Organisms/NFTs/NFTWalletCollectionView/NFTWalletCollectionView.tsx b/src/components/Organisms/NFTs/NFTWalletCollectionView/NFTWalletCollectionView.tsx
index 6c7ba73b..ee175b9f 100644
--- a/src/components/Organisms/NFTs/NFTWalletCollectionView/NFTWalletCollectionView.tsx
+++ b/src/components/Organisms/NFTs/NFTWalletCollectionView/NFTWalletCollectionView.tsx
@@ -16,7 +16,6 @@ import { Badge } from "@/components/ui/badge";
import { AccountCard } from "@/components/Molecules";
import { type NFTWalletCollectionViewProps } from "@/utils/types/organisms.types";
import { Skeleton } from "@/components/ui/skeleton";
-import { sum } from "lodash";
import { useGoldRush } from "@/utils/store";
export const NFTWalletCollectionView: React.FC<
@@ -132,15 +131,16 @@ export const NFTWalletCollectionView: React.FC<
),
Some: (result) => {
- const s = sum(
- result.map(
- (x) => x.floor_price_quote
- )
+ let totalFloorPriceQuote: number = 0;
+ result.forEach(
+ ({ floor_price_quote }) =>
+ (totalFloorPriceQuote +=
+ floor_price_quote)
);
return (
{prettifyCurrency(
- s,
+ totalFloorPriceQuote,
2,
"USD",
true
diff --git a/src/components/Organisms/NFTs/NFTWalletTokenListView/NFTWalletTokenListView.tsx b/src/components/Organisms/NFTs/NFTWalletTokenListView/NFTWalletTokenListView.tsx
index a0a3fca7..cfc51ce2 100644
--- a/src/components/Organisms/NFTs/NFTWalletTokenListView/NFTWalletTokenListView.tsx
+++ b/src/components/Organisms/NFTs/NFTWalletTokenListView/NFTWalletTokenListView.tsx
@@ -15,7 +15,6 @@ import {
CardDescription,
CardTitle,
} from "@/components/ui/card";
-import sum from "lodash/sum";
import { AccountCard } from "@/components/Molecules";
import { Skeleton } from "@/components/ui/skeleton";
import { useGoldRush } from "@/utils/store";
@@ -82,13 +81,16 @@ export const NFTWalletTokenListView: React.FC = ({
),
Some: (result) => {
- const s = sum(
- result.map((x) => x.floor_price_quote)
+ let totalFloorPriceQuote: number = 0;
+ result.forEach(
+ ({ floor_price_quote }) =>
+ (totalFloorPriceQuote +=
+ floor_price_quote)
);
return (
{prettifyCurrency(
- s,
+ totalFloorPriceQuote,
2,
"USD",
true
diff --git a/src/components/Organisms/TokenBalancesListView/TokenBalancesListView.tsx b/src/components/Organisms/TokenBalancesListView/TokenBalancesListView.tsx
index 4c98b665..132e2049 100644
--- a/src/components/Organisms/TokenBalancesListView/TokenBalancesListView.tsx
+++ b/src/components/Organisms/TokenBalancesListView/TokenBalancesListView.tsx
@@ -36,7 +36,6 @@ import { Button } from "@/components/ui/button";
import { timestampParser } from "@/utils/functions";
import { AccountCard } from "@/components/Molecules";
import { TableHeaderSorting } from "@/components/ui/tableHeaderSorting";
-import { sum } from "lodash";
import { BalancePriceDelta, IconWrapper } from "@/components/Shared";
import { GRK_SIZES } from "@/utils/constants/shared.constants";
import { useGoldRush } from "@/utils/store";
@@ -320,7 +319,7 @@ export const TokenBalancesListView: React.FC = ({
class_name="mr-2"
/>
{row.original.last_transferred_at
- ? `Last transfered ${timestampParser(
+ ? `Last transferred ${timestampParser(
row.original.last_transferred_at.toDateString(),
"relative"
)} `
@@ -472,7 +471,7 @@ export const TokenBalancesListView: React.FC = ({
class_name="mr-2"
/>
{row.original.last_transferred_at
- ? `Last transfered ${timestampParser(
+ ? `Last transferred ${timestampParser(
row.original.last_transferred_at.toDateString(),
"relative"
)} `
@@ -558,11 +557,14 @@ export const TokenBalancesListView: React.FC = ({
),
Some: (result) => {
- const s = sum(result.map((x) => x.quote));
+ let totalQuote: number = 0;
+ result.forEach(
+ ({ quote }) => (totalQuote += quote)
+ );
return (
{prettifyCurrency(
- s,
+ totalQuote,
2,
"USD",
true