Skip to content

Commit

Permalink
fix: app crash during attempt to use ton connect with no accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Oct 9, 2024
1 parent d8ac042 commit b951a9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import { useAnalytics, useAppHeight, useLayout } from './libs/hooks';
import { useGlobalPreferencesQuery } from "@tonkeeper/uikit/dist/state/global-preferences";
import { useGlobalSetup } from "@tonkeeper/uikit/dist/state/globalSetup";
import { useIsActiveAccountMultisig } from "@tonkeeper/uikit/dist/state/multisig";
import { UrlTonConnectSubscription } from "./components/UrlTonConnectSubscription";

const QrScanner = React.lazy(() => import('@tonkeeper/uikit/dist/components/QrScanner'));
const DesktopView = React.lazy(() => import('./AppDesktop'));
Expand Down Expand Up @@ -202,7 +201,6 @@ const Loader: FC = () => {
<QrScanner />
</Suspense>
<ModalsRoot />
<UrlTonConnectSubscription />
</AppContext.Provider>
</AmplitudeAnalyticsContext.Provider>
);
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/AppDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
DesktopManageMultisigsPage
} from "@tonkeeper/uikit/dist/desktop-pages/manage-multisig-wallets/DesktopManageMultisigs";
import { DesktopMultisigOrdersPage } from "@tonkeeper/uikit/dist/desktop-pages/multisig-orders/DesktopMultisigOrders";
import { UrlTonConnectSubscription } from "./components/UrlTonConnectSubscription";

const DesktopAccountSettingsPage = React.lazy(
() => import('@tonkeeper/uikit/dist/desktop-pages/settings/DesktopAccountSettingsPage')
Expand Down Expand Up @@ -323,6 +324,7 @@ const BackgroundElements = () => {
<PairSignerNotification />
<ConnectLedgerNotification />
<PairKeystoneNotification />
<UrlTonConnectSubscription />
</Suspense>
);
};
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/AppMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import React, { FC, Suspense, useMemo } from 'react';
import { Route, Routes, useLocation } from 'react-router-dom';
import styled, { ThemeProvider, css, useTheme } from 'styled-components';
import { useAppWidth } from './libs/hooks';
import { UrlTonConnectSubscription } from "./components/UrlTonConnectSubscription";

const Settings = React.lazy(() => import('@tonkeeper/uikit/dist/pages/settings'));
const Browser = React.lazy(() => import('@tonkeeper/uikit/dist/pages/browser'));
Expand Down Expand Up @@ -233,6 +234,7 @@ export const MobileContent: FC<{
<Footer standalone={standalone} />
<MemoryScroll />
<Notifications />
<UrlTonConnectSubscription />
</Wrapper>
);
};
Expand Down

0 comments on commit b951a9f

Please sign in to comment.