mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
linting
This commit is contained in:
parent
c6f1e35c54
commit
da361c98ff
@ -52,8 +52,7 @@ export default class AssetsUser extends PureComponent {
|
|||||||
.filter(asset => !!asset)
|
.filter(asset => !!asset)
|
||||||
.map((asset: any) => (
|
.map((asset: any) => (
|
||||||
<Asset key={asset.id} asset={asset} />
|
<Asset key={asset.id} asset={asset} />
|
||||||
))
|
))}
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
|
@ -45,8 +45,7 @@ export default class Invoices extends Component<{}, InvoicesState> {
|
|||||||
.filter(asset => !!asset)
|
.filter(asset => !!asset)
|
||||||
.map((asset, index) => (
|
.map((asset, index) => (
|
||||||
<Asset key={index} asset={asset} />
|
<Asset key={index} asset={asset} />
|
||||||
))
|
))}
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div>No invoices yet</div>
|
<div>No invoices yet</div>
|
||||||
|
@ -273,7 +273,10 @@ class Publish extends Component<{}, PublishState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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({
|
this.setState({
|
||||||
publishedDid: asset.id,
|
publishedDid: asset.id,
|
||||||
isPublished: true
|
isPublished: true
|
||||||
|
Loading…
Reference in New Issue
Block a user