1
0
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:
mihaisc 2021-03-11 14:51:43 +02:00 committed by GitHub
parent a4f4de84fd
commit a3e2c8ef3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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])