mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
removed unused methods
This commit is contained in:
parent
ebcced9733
commit
5ed369c0b7
@ -67,7 +67,7 @@ export default function Compute({
|
|||||||
}): ReactElement {
|
}): ReactElement {
|
||||||
const { appConfig } = useSiteMetadata()
|
const { appConfig } = useSiteMetadata()
|
||||||
const { accountId, web3 } = useWeb3()
|
const { accountId, web3 } = useWeb3()
|
||||||
const { buyDT, pricingError, pricingStepText } = usePricing()
|
const { pricingError, pricingStepText } = usePricing()
|
||||||
const [isJobStarting, setIsJobStarting] = useState(false)
|
const [isJobStarting, setIsJobStarting] = useState(false)
|
||||||
const [error, setError] = useState<string>()
|
const [error, setError] = useState<string>()
|
||||||
const newAbortController = useAbortController()
|
const newAbortController = useAbortController()
|
||||||
@ -468,13 +468,6 @@ export default function Compute({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: pricingError is always undefined even upon errors during buyDT for whatever reason.
|
|
||||||
// So manually drop out above, but ideally could be replaced with this alone.
|
|
||||||
if (pricingError) {
|
|
||||||
setError(pricingError)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
LoggerInstance.log(
|
LoggerInstance.log(
|
||||||
`[compute] Got ${
|
`[compute] Got ${
|
||||||
hasPreviousDatasetOrder ? 'existing' : 'new'
|
hasPreviousDatasetOrder ? 'existing' : 'new'
|
||||||
@ -561,7 +554,7 @@ export default function Compute({
|
|||||||
validateOnMount
|
validateOnMount
|
||||||
validationSchema={validationSchema}
|
validationSchema={validationSchema}
|
||||||
onSubmit={async (values) => {
|
onSubmit={async (values) => {
|
||||||
// await startJob(values.algorithm)
|
await startJob(values.algorithm)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormStartComputeDataset
|
<FormStartComputeDataset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user