diff --git a/src/components/Tables/ForSaleTable.tsx b/src/components/Tables/ForSaleTable.tsx
index 3e22014..3dd9ce9 100644
--- a/src/components/Tables/ForSaleTable.tsx
+++ b/src/components/Tables/ForSaleTable.tsx
@@ -8,8 +8,8 @@ import {
Paper,
Button,
} from '@mui/material';
-import { useSetAtom } from 'jotai';
-import { forwardRef } from 'react';
+import { useAtom, useSetAtom } from 'jotai';
+import { forwardRef, useMemo } from 'react';
import { TableVirtuoso, TableComponents } from 'react-virtuoso';
import {
forSaleAtom,
@@ -105,7 +105,9 @@ function rowContent(
setNames: SetNames,
setNamesForSale: SetNamesForSale,
isPrimaryNameForSale: boolean,
- t: TFunction
+ t: TFunction,
+ nameStrings: string[],
+ pendingBuyNameStrings: string[]
) {
const handleBuy = async (name: string) => {
const loadId = showLoading(
@@ -163,13 +165,17 @@ function rowContent(
}
};
+ const isNameOwned = nameStrings.includes(row.name);
+
+ const isNameBuying = pendingBuyNameStrings.includes(row.name);
+
return (
<>
{row.name}
{row.salePrice}