mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
linting
This commit is contained in:
parent
645f79f733
commit
a1fdfa8a90
@ -4,8 +4,6 @@ import React from 'react'
|
||||
import { render } from '@testing-library/react'
|
||||
import { DDO } from '@oceanprotocol/squid'
|
||||
import AssetFilesDetails from './AssetFilesDetails'
|
||||
import { User } from '../../../context'
|
||||
import { userMockConnected } from '../../../../__mocks__/user-mock'
|
||||
|
||||
describe('AssetFilesDetails', () => {
|
||||
it('renders without crashing', () => {
|
||||
|
@ -251,8 +251,9 @@ export default class UserProvider extends PureComponent<{}, UserProviderState> {
|
||||
let network = 'Unknown'
|
||||
try {
|
||||
network = await ocean.keeper.getNetworkName()
|
||||
} catch (error) {}
|
||||
network !== this.state.network && this.setState({ network })
|
||||
} finally {
|
||||
network !== this.state.network && this.setState({ network })
|
||||
}
|
||||
}
|
||||
|
||||
public render() {
|
||||
|
Loading…
Reference in New Issue
Block a user