We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84391d0 commit ae6f80bCopy full SHA for ae6f80b
1 file changed
packages/apps/human-app/frontend/src/modules/worker/profile/components/staking-info.tsx
@@ -31,7 +31,7 @@ export function StakingInfo() {
31
refetch,
32
isRefetching,
33
} = useGetStakingSummary();
34
- const { data: uiConfig } = useGetUiConfig();
+ const { data: uiConfig, isLoading: isUiConfigLoading } = useGetUiConfig();
35
36
const isConnectButtonDisabled =
37
!!exchangeApiKeyData?.exchange_name || isExchangeApiKeyLoading;
@@ -46,7 +46,7 @@ export function StakingInfo() {
46
isError;
47
48
const isStaked =
49
- isLoading || isStakingError
+ isLoading || isStakingError || isUiConfigLoading
50
? false
51
: stakedAmount >= Number(uiConfig?.minThreshold || '0');
52
0 commit comments