mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-13 00:09:52 -05:00
fix call to get available balance
This commit is contained in:
parent
05f08c25e9
commit
6f5d1a137b
@ -2230,7 +2230,7 @@ async function waitForAvailableBalance(amount: bigint, ...wallets: any[]) {
|
|||||||
// eslint-disable-next-line no-async-promise-executor
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
promises.push(new Promise(async (resolve) => {
|
promises.push(new Promise(async (resolve) => {
|
||||||
const taskLooper: any = new TaskLooper(async function() {
|
const taskLooper: any = new TaskLooper(async function() {
|
||||||
if (await wallet.getUnlockedBalance() >= amount) {
|
if (await wallet.getAvailableBalance() >= amount) {
|
||||||
taskLooper.stop();
|
taskLooper.stop();
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user