Skip to content

Commit

Permalink
chore: fix staging breaking redirection issue (#18123)
Browse files Browse the repository at this point in the history
  • Loading branch information
suisin-deriv authored Mar 10, 2025
1 parent b975059 commit 4f77456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/App/Containers/Redirect/redirect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ const Redirect = observer(() => {
let updated_search = url_query_string;
const params = new URLSearchParams(url_query_string);
params.set('account', queryCurrency);
params.set('trade_type', matched_route.type);
if (matched_route && matched_route.type) {
params.set('trade_type', matched_route?.type);
if (matched_route && matched_route?.type) {
updated_search = `${params.toString()}`;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Stores/client-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ export default class ClientStore extends BaseStore {
// eslint-disable-next-line max-len
const { loginid, landing_company_shortcode, currency, account_settings, preferred_language, user_id } = this;

const client_accounts = JSON.parse(LocalStore.get(storage_key));
const client_accounts = JSON.parse(LocalStore.get(storage_key) || '{}');
const email = this.email || client_accounts[loginid]?.email;
const residence = this.residence || client_accounts[loginid]?.residence;

Expand Down

0 comments on commit 4f77456

Please sign in to comment.