mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
use optional on initialized provider check
This commit is contained in:
parent
c25ab289fd
commit
0901ff7141
@ -138,8 +138,8 @@ export default function Compute({
|
|||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
!initializedProvider ||
|
!initializedProvider ||
|
||||||
!initializedProvider.datasets ||
|
!initializedProvider?.datasets ||
|
||||||
!initializedProvider.algorithm
|
!initializedProvider?.algorithm
|
||||||
) {
|
) {
|
||||||
setError(`Error initializing provider for the compute job!`)
|
setError(`Error initializing provider for the compute job!`)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user