Skip to content

Commit 2d3d926

Browse files
committed
fix: setup request response err
1 parent 45bdd4a commit 2d3d926

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/api/setup.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function requestSetup(
5959

6060
const md5 = ZkWasmUtil.convertToMd5(wasmUint8Array).toLowerCase()
6161

62-
let taskDetails
62+
let taskDetails = {}
6363
let taskId = ''
6464
// let setupStatus
6565

@@ -70,7 +70,8 @@ export async function requestSetup(
7070
)
7171
.then(async (response) => {
7272
taskId = response.data.result.id
73-
taskDetails = response.data.result.data[0]
73+
taskDetails = response.data.result
74+
// taskDetails = response.data.result.data[0]
7475
// result.status = response.data.result.data[0].status
7576

7677
logger.log(`[+] SET UP TASK STARTED. TASK ID: ${taskId}`, '\n')

0 commit comments

Comments
 (0)