Fix/1847: Withdrawal form displaying lack of assets when connected with an uninitialised party id (#1960)
This commit is contained in:
parent
a853f91ca2
commit
e2b789000c
@ -5,6 +5,7 @@ import { accountsOnlyDataProvider } from '@vegaprotocol/accounts';
|
|||||||
import type { WithdrawalArgs } from './use-create-withdraw';
|
import type { WithdrawalArgs } from './use-create-withdraw';
|
||||||
import { WithdrawManager } from './withdraw-manager';
|
import { WithdrawManager } from './withdraw-manager';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
import { t } from '@vegaprotocol/react-helpers';
|
||||||
|
|
||||||
interface WithdrawFormContainerProps {
|
interface WithdrawFormContainerProps {
|
||||||
partyId?: string;
|
partyId?: string;
|
||||||
@ -37,6 +38,7 @@ export const WithdrawFormContainer = ({
|
|||||||
loading={loading && assetsLoading}
|
loading={loading && assetsLoading}
|
||||||
error={error && assetsError}
|
error={error && assetsError}
|
||||||
data={data}
|
data={data}
|
||||||
|
noDataMessage={t('You have no assets to withdraw')}
|
||||||
>
|
>
|
||||||
{assets && data && (
|
{assets && data && (
|
||||||
<WithdrawManager
|
<WithdrawManager
|
||||||
|
Loading…
Reference in New Issue
Block a user