Skip to content

Commit

Permalink
fix pod auth
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Sep 6, 2023
1 parent 76b3955 commit 81502d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion centrifuge-app/src/utils/usePodAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { usePodUrl } from './usePools'
export function usePodAuth(poolId: string, accountOverride?: CombinedSubstrateAccount) {
const { selectedCombinedAccount } = useWallet().substrate
const podUrl = usePodUrl(poolId)
const suitableAccounts = useSuitableAccounts({ poolId, poolRole: ['Borrower'], proxyType: ['PodAuth'] })
const suitableAccounts = useSuitableAccounts({ poolId, poolRole: ['Borrower'], proxyType: ['PodAuth'] }).filter(
(acc) => acc.proxies?.length === 1
)
const account = accountOverride || selectedCombinedAccount || suitableAccounts[0]
const cent = useCentrifuge()
const utils = useCentrifugeUtils()
Expand Down

0 comments on commit 81502d3

Please sign in to comment.