Skip to content

Commit

Permalink
refactor: thunk the call to toggleaccountdialog
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-deriv committed Nov 13, 2024
1 parent 63d69f6 commit 9e6546c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.</1>'
components={[
<br key={0} />,
<span key={1} className='virtual__account-switch-text' onClick={toggleAccountsDialog} />,
<span
key={1}
className='virtual__account-switch-text'
onClick={() => {
toggleAccountsDialog();
}}
/>,
]}
/>
</Text>
Expand Down

0 comments on commit 9e6546c

Please sign in to comment.