Fix TypeError
This commit is contained in:
parent
4082a45618
commit
4a16cc17aa
|
@ -143,8 +143,8 @@ function useServerConfig (wallet) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const walletId = data?.walletByType.id
|
const walletId = data?.walletByType?.id
|
||||||
const serverConfig = { id: walletId, priority: data?.walletByType.priority, ...data?.walletByType.wallet }
|
const serverConfig = { id: walletId, priority: data?.walletByType?.priority, ...data?.walletByType?.wallet }
|
||||||
const autowithdrawSettings = autowithdrawInitial({ me, priority: serverConfig?.priority })
|
const autowithdrawSettings = autowithdrawInitial({ me, priority: serverConfig?.priority })
|
||||||
const config = { ...serverConfig, autowithdrawSettings }
|
const config = { ...serverConfig, autowithdrawSettings }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue