From a1abc9cff07bc23a7dad6658fbec687c6d5d073c Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Thu, 17 Mar 2022 11:59:21 +0200 Subject: [PATCH] fix build --- src/components/Asset/AssetContent/EditHistory.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Asset/AssetContent/EditHistory.tsx b/src/components/Asset/AssetContent/EditHistory.tsx index 3c6307707..59d0172db 100644 --- a/src/components/Asset/AssetContent/EditHistory.tsx +++ b/src/components/Asset/AssetContent/EditHistory.tsx @@ -30,8 +30,8 @@ export default function EditHistory({ receipts, setReceipts }: { - receipts: ReceiptData[] - setReceipts: (receipts: ReceiptData[]) => void + receipts: NftUpdate[] + setReceipts: (receipts: NftUpdate[]) => void }): ReactElement { const { asset } = useAsset() @@ -73,8 +73,6 @@ export default function EditHistory({ // // 2. Construct display data based on fetched data. // - const [receipts, setReceipts] = useState() - useEffect(() => { if (!data || data.nftUpdates.length === 0) return const receiptCollection = data.nftUpdates