From 6799e4329048d1853dd5cb30d4f0f904ee101e83 Mon Sep 17 00:00:00 2001 From: Onno Visser <23527729+onnovisser@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:10:00 +0200 Subject: [PATCH] picker fix --- centrifuge-app/src/utils/usePermissions.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/centrifuge-app/src/utils/usePermissions.tsx b/centrifuge-app/src/utils/usePermissions.tsx index 14485de44b..668c9878e9 100644 --- a/centrifuge-app/src/utils/usePermissions.tsx +++ b/centrifuge-app/src/utils/usePermissions.tsx @@ -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' @@ -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(accounts[0]) const utils = useCentrifugeUtils() const pickerElement =