Skip to content

Commit

Permalink
fix: change getter for normal method
Browse files Browse the repository at this point in the history
  • Loading branch information
brianUtn98 committed Dec 14, 2023
1 parent 4bcea69 commit b4d9c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallets/wallet-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class LocalWalletPool implements WalletPool {
private getHighestBalanceWallet(): ResourceWithBalance | undefined {
if (!this.availableResources.length) return;

return this.availableResources.reduce((acc, curr) => {
return this.availableResources().reduce((acc, curr) => {
if (!acc) return curr;

if (curr.getBalance && acc.getBalance) {
Expand All @@ -105,7 +105,7 @@ export class LocalWalletPool implements WalletPool {
});
}

private get availableResources(): ResourceWithBalance[] {
private availableResources(): ResourceWithBalance[] {
return Object.values(this.resources).filter(rs =>
rs.resource.isAvailable(),
);
Expand Down

0 comments on commit b4d9c5d

Please sign in to comment.