Fix/1847: Withdrawal form displaying lack of assets when connected with an uninitialised party id (#1960)

This commit is contained in:
Sam Keen 2022-11-07 12:08:30 +00:00 committed by GitHub
parent a853f91ca2
commit e2b789000c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import { accountsOnlyDataProvider } from '@vegaprotocol/accounts';
import type { WithdrawalArgs } from './use-create-withdraw';
import { WithdrawManager } from './withdraw-manager';
import { useMemo } from 'react';
import { t } from '@vegaprotocol/react-helpers';
interface WithdrawFormContainerProps {
partyId?: string;
@ -37,6 +38,7 @@ export const WithdrawFormContainer = ({
loading={loading && assetsLoading}
error={error && assetsError}
data={data}
noDataMessage={t('You have no assets to withdraw')}
>
{assets && data && (
<WithdrawManager