Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TRAH] Aizad/TRAH-2268/DemoRealAccountSwitcher #12635

Merged
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c205ef2
feat: create real demo switch account on tradershub
aizad-deriv Dec 29, 2023
23a1176
fix: added first_real_accounts and demo_loginid inside useTradingAcco…
aizad-deriv Dec 29, 2023
b8176ab
fix: resolve comments
aizad-deriv Jan 2, 2024
b5afdd1
chore: added open and closing animations when toggle
aizad-deriv Jan 2, 2024
239c656
fix: resolve comments
aizad-deriv Jan 2, 2024
b8e8081
fix: remove invalid classname
aizad-deriv Jan 2, 2024
e29d482
Merge branch 'master' of github.com:aizad-deriv/deriv-app into aizad/…
aizad-deriv Jan 4, 2024
8c0c632
fix: remove headless and replace it with default tailwind
aizad-deriv Jan 4, 2024
6bda486
feat: create real demo switch account on tradershub
aizad-deriv Dec 29, 2023
c03ff5e
fix: added first_real_accounts and demo_loginid inside useTradingAcco…
aizad-deriv Dec 29, 2023
9dc9487
fix: resolve comments
aizad-deriv Jan 2, 2024
263004d
chore: added open and closing animations when toggle
aizad-deriv Jan 2, 2024
3e150cb
fix: resolve comments
aizad-deriv Jan 2, 2024
2455fb6
fix: remove invalid classname
aizad-deriv Jan 2, 2024
8e6548a
fix: remove headless and replace it with default tailwind
aizad-deriv Jan 4, 2024
eb7f98d
fix: update code
aizad-deriv Jan 4, 2024
9eb5442
chore: update code
aizad-deriv Jan 4, 2024
028672a
fix: update code
aizad-deriv Jan 4, 2024
0f04bf6
fix: remove ButtonGroup export inside of ./components
aizad-deriv Jan 4, 2024
8f4374f
fix: resolve build fail issue
aizad-deriv Jan 4, 2024
a9ca615
fix: resolve sonar cloud issue
aizad-deriv Jan 4, 2024
c8c29ed
chore: updated code
aizad-deriv Jan 4, 2024
74564ef
fix: add type to account
aizad-deriv Jan 4, 2024
0b2c402
Delete packages/tradershub/package-lock.json
aizad-deriv Jan 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/api/src/hooks/useTradingAccountsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const useTradingAccountsList = () => {
const modified_accounts = useMemo(() => {
return filtered_accounts?.map(trading => ({
...trading,
first_real_loginid: filtered_accounts?.find(account => account.account_type === 'real')?.loginid[0],
demo_loginid: filtered_accounts?.find(account => account.account_type === 'demo')?.loginid,
}));
}, [filtered_accounts]);

Expand Down
Loading