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:
parent
7dca7f8e82
commit
b2ae8fcce5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user