Skip to content

Commit

Permalink
fix: dont show url unavailable modal when logging in (deriv-com#13876)
Browse files Browse the repository at this point in the history
  • Loading branch information
maryia-deriv authored Feb 29, 2024
1 parent 7db7a31 commit 5206980
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/trader/src/Stores/Modules/Trading/trade-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ export default class TradeStore extends BaseStore {
await this.setActiveSymbols();
await this.root_store.active_symbols.setActiveSymbols();
const { symbol, showModal } = getTradeURLParams({ active_symbols: this.active_symbols });
if (showModal && should_show_loading) this.root_store.ui.toggleUrlUnavailableModal(true);
if (showModal && should_show_loading && !this.root_store.client.is_logging_in) {
this.root_store.ui.toggleUrlUnavailableModal(true);
}
const hasSymbolChanged = symbol && symbol !== this.symbol;
if (hasSymbolChanged) this.symbol = symbol;
if (should_set_default_symbol && !symbol) await this.setDefaultSymbol();
Expand Down

0 comments on commit 5206980

Please sign in to comment.