Skip to content

Commit

Permalink
picker fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Sep 12, 2023
1 parent e705612 commit 6799e43
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions centrifuge-app/src/utils/usePermissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import {
isSameAddress,
PoolRoles,
} from '@centrifuge/centrifuge-js'
import { truncateAddress, useCentrifugeQuery, useCentrifugeUtils, useWallet } from '@centrifuge/centrifuge-react'
import {
CombinedSubstrateAccount,
truncateAddress,
useCentrifugeQuery,
useCentrifugeUtils,
useWallet,
} from '@centrifuge/centrifuge-react'
import { Select } from '@centrifuge/fabric'
import * as React from 'react'
import { combineLatest, filter, map, repeatWhen, switchMap } from 'rxjs'
Expand Down Expand Up @@ -109,7 +115,7 @@ type SuitableConfig = {

export function useSuitableAccountPicker(config: SuitableConfig) {
const accounts = useSuitableAccounts(config)
const [account, setAccount] = React.useState(accounts[0])
const [account, setAccount] = React.useState<CombinedSubstrateAccount | undefined>(accounts[0])
const utils = useCentrifugeUtils()

const pickerElement =
Expand Down

0 comments on commit 6799e43

Please sign in to comment.