E92F Revert "fix: currency" by mayuran-deriv · Pull Request #442 · deriv-com/bot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Revert "fix: currency" #442

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion src/components/layout/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

const { isSingleLoggingIn } = useOauth2();

const { featureFlagValue } = useGrowthbookGetFeatureValue<any>({ featureFlag: 'hub_enabled_country_list' });

Check warning on line 37 in src/components/layout/header/header.tsx

View workflow job for this annotation

GitHub Actions / build_to_cloudflare_pages

Unexpected any. Specify a different type

const renderAccountSection = () => {
if (isAuthorizing || isSingleLoggingIn) {
Expand Down Expand Up @@ -128,7 +128,7 @@
const getQueryParams = new URLSearchParams(window.location.search);
const currency = getQueryParams.get('account') ?? '';
const query_param_currency =
currency || sessionStorage.getItem('query_param_currency') || 'USD';
sessionStorage.getItem('query_param_currency') || currency || 'USD';
try {
await requestOidcAuthentication({
redirectCallbackUri: `${window.location.origin}/callback`,
Expand Down
8 changes: 0 additions & 8 deletions src/pages/callback/callback-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ const getSelectedCurrency = (
getQueryParams.get('account') ||
sessionStorage.getItem('query_param_currency') ||
'';
console.log(
state,
state?.account,
'www',
getQueryParams.get('account'),
sessionStorage.getItem('query_param_currency')
);

const firstAccountKey = tokens.acct1;
const firstAccountCurrency = clientAccounts[firstAccountKey]?.currency;

Expand Down
Loading
0