mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-12 15:59:56 -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
|
||||
promises.push(new Promise(async (resolve) => {
|
||||
const taskLooper: any = new TaskLooper(async function() {
|
||||
if (await wallet.getUnlockedBalance() >= amount) {
|
||||
if (await wallet.getAvailableBalance() >= amount) {
|
||||
taskLooper.stop();
|
||||
resolve();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user