1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix build

This commit is contained in:
Bogdan Fazakas 2022-03-17 11:59:21 +02:00
parent 08b90b3635
commit a1abc9cff0

View File

@ -30,8 +30,8 @@ export default function EditHistory({
receipts, receipts,
setReceipts setReceipts
}: { }: {
receipts: ReceiptData[] receipts: NftUpdate[]
setReceipts: (receipts: ReceiptData[]) => void setReceipts: (receipts: NftUpdate[]) => void
}): ReactElement { }): ReactElement {
const { asset } = useAsset() const { asset } = useAsset()
@ -73,8 +73,6 @@ export default function EditHistory({
// //
// 2. Construct display data based on fetched data. // 2. Construct display data based on fetched data.
// //
const [receipts, setReceipts] = useState<NftUpdate[]>()
useEffect(() => { useEffect(() => {
if (!data || data.nftUpdates.length === 0) return if (!data || data.nftUpdates.length === 0) return
const receiptCollection = data.nftUpdates const receiptCollection = data.nftUpdates