Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
feat: include wallet balance update in wallet sync actions (#4007)
Browse files Browse the repository at this point in the history
  • Loading branch information
goga-m committed Jul 2, 2021
1 parent 3c717b9 commit aea9e5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/domains/wallet/hooks/use-wallet-sync.ts
Expand Up @@ -33,8 +33,10 @@ export const useWalletSync = ({ profile, env }: WalletImportTypes) => {
}
};

const syncBalance = async (wallet: Contracts.IReadWriteWallet) => wallet.synchroniser().identity();

const syncAll = async (wallet: Contracts.IReadWriteWallet) =>
Promise.allSettled([syncVotes(wallet), syncRates(profile, wallet), syncFees(wallet)]);
Promise.allSettled([syncVotes(wallet), syncRates(profile, wallet), syncFees(wallet), syncBalance(wallet)]);

return { syncAll };
};

0 comments on commit aea9e5d

Please sign in to comment.