From e2b789000c83bab6fd7123c4e2c6b589cf5eb11c Mon Sep 17 00:00:00 2001 From: Sam Keen Date: Mon, 7 Nov 2022 12:08:30 +0000 Subject: [PATCH] Fix/1847: Withdrawal form displaying lack of assets when connected with an uninitialised party id (#1960) --- libs/withdraws/src/lib/withdraw-form-container.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/withdraws/src/lib/withdraw-form-container.tsx b/libs/withdraws/src/lib/withdraw-form-container.tsx index 1838f853f..339665076 100644 --- a/libs/withdraws/src/lib/withdraw-form-container.tsx +++ b/libs/withdraws/src/lib/withdraw-form-container.tsx @@ -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 && (