1
0
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:
Bogdan Fazakas 2022-06-01 17:28:39 +03:00
parent c25ab289fd
commit 0901ff7141

View File

@ -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