Skip to content

Commit ae6f80b

Browse files
committed
minor fix
1 parent 84391d0 commit ae6f80b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/apps/human-app/frontend/src/modules/worker/profile/components

packages/apps/human-app/frontend/src/modules/worker/profile/components/staking-info.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function StakingInfo() {
3131
refetch,
3232
isRefetching,
3333
} = useGetStakingSummary();
34-
const { data: uiConfig } = useGetUiConfig();
34+
const { data: uiConfig, isLoading: isUiConfigLoading } = useGetUiConfig();
3535

3636
const isConnectButtonDisabled =
3737
!!exchangeApiKeyData?.exchange_name || isExchangeApiKeyLoading;
@@ -46,7 +46,7 @@ export function StakingInfo() {
4646
isError;
4747

4848
const isStaked =
49-
isLoading || isStakingError
49+
isLoading || isStakingError || isUiConfigLoading
5050
? false
5151
: stakedAmount >= Number(uiConfig?.minThreshold || '0');
5252

0 commit comments

Comments
 (0)