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 (
|
||||
!initializedProvider ||
|
||||
!initializedProvider.datasets ||
|
||||
!initializedProvider.algorithm
|
||||
!initializedProvider?.datasets ||
|
||||
!initializedProvider?.algorithm
|
||||
) {
|
||||
setError(`Error initializing provider for the compute job!`)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user