mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix edit history (#435)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
a4f4de84fd
commit
a3e2c8ef3b
@ -32,7 +32,7 @@ export default function EditHistory(): ReactElement {
|
||||
const [creationTx, setCreationTx] = useState<string>()
|
||||
|
||||
useEffect(() => {
|
||||
if (!data) return
|
||||
if (!data || data.datatokens.length === 0) return
|
||||
setReceipts(data.datatokens[0].updates)
|
||||
setCreationTx(data.datatokens[0].tx)
|
||||
}, [data])
|
||||
|
Loading…
Reference in New Issue
Block a user