Skip to content

Commit

Permalink
fix: remove lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Apr 7, 2023
1 parent 50a08e3 commit 7043131
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/Stores/common-store.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import * as SocketCache from '_common/base/socket_cache';
import { reject } from 'lodash';

import { action, computed, makeObservable, observable } from 'mobx';
import { changeLanguage, getAllowedLanguages } from '@deriv/translations';
import { getAppId, getUrlBinaryBot, getUrlSmartTrader, isMobile, platforms, routes, toMoment } from '@deriv/shared';

import BaseStore from './base-store';
import BinarySocket from '_common/base/socket_base';
import ServerTime from '_common/base/server_time';
Expand Down Expand Up @@ -121,7 +118,7 @@ export default class CommonStore extends BaseStore {
window.localStorage.setItem('i18n_language', key);
}

return new Promise(resolve => {
return new Promise((resolve, reject) => {
WS.setSettings({
set_settings: 1,
preferred_language: key,
Expand Down

0 comments on commit 7043131

Please sign in to comment.