1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

fix missing initial message

This commit is contained in:
Matthias Kretschmann 2019-05-06 13:07:38 +02:00
parent 7dca7f8e82
commit b2ae8fcce5
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -25,7 +25,7 @@ export default class AssetFile extends PureComponent<
> {
public state = {
isLoading: false,
message: '',
message: '1/3 Decrypting file URL...',
error: '',
step: null
}
@ -51,7 +51,12 @@ export default class AssetFile extends PureComponent<
}
private resetState = () =>
this.setState({ isLoading: true, message: '', error: '', step: null })
this.setState({
isLoading: true,
message: '1/3 Decrypting file URL...',
error: '',
step: null
})
private purchaseAsset = async (ddo: DDO, index: number) => {
this.resetState()