Skip to content

Commit

Permalink
Merge pull request #216 from shayan-deriv/shayan/fix-staging-blank-page
Browse files Browse the repository at this point in the history
fix: updated the way we fetch currentLang
  • Loading branch information
ali-hosseini-deriv authored Jul 24, 2024
2 parents 33daf9b + 58f3b47 commit bef3f3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hooks/custom-hooks/useDerivAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import Cookies from 'js-cookie';
import { FIREBASE_INIT_DATA } from '@/constants';
import { Analytics } from '@deriv-com/analytics';
import { useWebsiteStatus } from '@deriv-com/api-hooks';
import { useTranslations } from '@deriv-com/translations';
import { useDevice } from '@deriv-com/ui';
import { WebSocketUtils } from '@deriv-com/utils';
import { LocalStorageConstants, WebSocketUtils } from '@deriv-com/utils';
import { useActiveAccount } from '../api/account';

/**
Expand All @@ -16,7 +15,7 @@ const useDerivAnalytics = () => {
const { data: activeAccount } = useActiveAccount();
const { data: websiteStatus } = useWebsiteStatus();
const { isMobile } = useDevice();
const { currentLang = 'EN' } = useTranslations();
const currentLang = localStorage.getItem(LocalStorageConstants.i18nLanguage) || 'EN';

const initialise = async () => {
try {
Expand Down

0 comments on commit bef3f3a

Please sign in to comment.