From 9e6546ca1eda9e854f60d7b0c953191c2de5d962 Mon Sep 17 00:00:00 2001 From: Jim Daniels Wasswa Date: Wed, 13 Nov 2024 14:58:44 +0800 Subject: [PATCH] refactor: thunk the call to toggleaccountdialog --- .../src/components/cashier-container/virtual/virtual.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/cashier/src/components/cashier-container/virtual/virtual.tsx b/packages/cashier/src/components/cashier-container/virtual/virtual.tsx index 289c933f3fa8..edd70cee9233 100644 --- a/packages/cashier/src/components/cashier-container/virtual/virtual.tsx +++ b/packages/cashier/src/components/cashier-container/virtual/virtual.tsx @@ -42,7 +42,13 @@ const Virtual = observer(() => { i18n_default_text='You need to switch to a real money account to use this feature.<0/>You can do this by selecting a real account from the <1>Account Switcher.' components={[
, - , + { + toggleAccountsDialog(); + }} + />, ]} />