1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
This commit is contained in:
Jernej Pregelj 2019-03-25 15:27:43 +01:00
parent c6f1e35c54
commit da361c98ff
3 changed files with 6 additions and 5 deletions

View File

@ -52,8 +52,7 @@ export default class AssetsUser extends PureComponent {
.filter(asset => !!asset)
.map((asset: any) => (
<Asset key={asset.id} asset={asset} />
))
}
))}
</div>
) : (
<div>

View File

@ -45,8 +45,7 @@ export default class Invoices extends Component<{}, InvoicesState> {
.filter(asset => !!asset)
.map((asset, index) => (
<Asset key={index} asset={asset} />
))
}
))}
</div>
) : (
<div>No invoices yet</div>

View File

@ -273,7 +273,10 @@ class Publish extends Component<{}, PublishState> {
}
try {
const asset = await this.context.ocean.assets.create(newAsset, account[0])
const asset = await this.context.ocean.assets.create(
newAsset,
account[0]
)
this.setState({
publishedDid: asset.id,
isPublished: true