mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-15 02:59:39 -04:00
fix call to get available balance
This commit is contained in:
parent
05f08c25e9
commit
6f5d1a137b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue