Skip to content

Commit

Permalink
Remove platform checker from Redirect (#17845)
Browse files Browse the repository at this point in the history
  • Loading branch information
habib-deriv authored Dec 19, 2024
1 parent 2c11715 commit 5ad3339
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/core/src/App/Containers/Redirect/redirect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ const Redirect = observer(() => {
{ pattern: /turbos/i, route: routes.trade, type: 'turboslong' },
{ pattern: /vanilla/i, route: routes.trade, type: 'vanillalongcall' },
{ pattern: /multiplier/i, route: routes.trade, type: 'multiplier' },
{ pattern: /proof-of-address/i, route: routes.proof_of_address, platform: 'tradershub_os' },
{ pattern: /proof-of-identity/i, route: routes.proof_of_identity, platform: 'tradershub_os' },
{ pattern: /personal-details/i, route: routes.personal_details, platform: 'tradershub_os' },
{ pattern: /proof-of-address/i, route: routes.proof_of_address },
{ pattern: /proof-of-identity/i, route: routes.proof_of_identity },
{ pattern: /personal-details/i, route: routes.personal_details },
{ pattern: /dbot/i, route: routes.bot },
];

Expand All @@ -332,9 +332,6 @@ const Redirect = observer(() => {
if (matched_route && matched_route.type) {
updated_search = `${url_query_string}&trade_type=${matched_route.type}`;
}
if (matched_route && matched_route.platform) {
updated_search = `${url_query_string}&platform=${matched_route.platform}`;
}

history.push({
pathname: matched_route ? matched_route.route : default_route,
Expand Down

0 comments on commit 5ad3339

Please sign in to comment.