From 1952cb0e78d55bab6912d22001423231d7df912f Mon Sep 17 00:00:00 2001 From: Maciek Date: Tue, 7 Feb 2023 11:31:15 +0100 Subject: [PATCH] fix(trading): inform the user his connection to wallet is lost (#2863) --- .../deal-ticket/deal-ticket-button.tsx | 6 ++--- .../components/deal-ticket/deal-ticket.tsx | 2 -- .../src/use-vega-transaction-manager.spec.tsx | 13 +++++++++ .../src/use-vega-transaction-manager.tsx | 14 ++++++---- .../src/use-vega-transaction-updater.tsx | 15 ++++++----- libs/wallet/src/use-vega-transaction.spec.tsx | 2 +- libs/wallet/src/use-vega-transaction.tsx | 27 ++++++++++++++++--- 7 files changed, 58 insertions(+), 21 deletions(-) diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx index d6ea6b82b..66fb2239d 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-button.tsx @@ -10,9 +10,9 @@ interface Props { export const DealTicketButton = ({ disabled, variant }: Props) => { const { pubKey } = useVegaWallet(); - const { openVegaWalletDialog } = useVegaWalletDialogStore((store) => ({ - openVegaWalletDialog: store.openVegaWalletDialog, - })); + const openVegaWalletDialog = useVegaWalletDialogStore( + (store) => store.openVegaWalletDialog + ); return pubKey ? (