Skip to content

Commit

Permalink
chore: move appVersion and fix bug with sign-out causing crash on fre…
Browse files Browse the repository at this point in the history
…sh install
  • Loading branch information
pete-watters committed Feb 15, 2024
1 parent 3db6131 commit c6d2507
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/app/features/container/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { RouteUrls } from '@shared/route-urls';
import { closeWindow } from '@shared/utils';

import { useAnalytics, useInitalizeAnalytics } from '@app/common/hooks/analytics/use-analytics';
import { AppVersion } from '@app/components/app-version';
import { LoadingSpinner } from '@app/components/loading-spinner';
import { CurrentAccountAvatar } from '@app/features/current-account/current-account-avatar';
import { CurrentAccountName } from '@app/features/current-account/current-account-name';
Expand Down Expand Up @@ -143,10 +144,13 @@ export function Container() {
title={getTitleFromUrl(pathname as RouteUrls)}
logo={
!hideLogo() ? (
<Logo
data-testid={OnboardingSelectors.LogoRouteToHome}
onClick={variant !== 'home' ? () => navigate(RouteUrls.Home) : undefined}
/>
<>
<Logo
data-testid={OnboardingSelectors.LogoRouteToHome}
onClick={variant !== 'home' ? () => navigate(RouteUrls.Home) : undefined}
/>
<AppVersion />
</>
) : (
// FIXME get rid of this Box used to position when no logo
<Box width="102px" height="32px" />
Expand Down
3 changes: 2 additions & 1 deletion src/app/features/settings/sign-out/sign-out-confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export function SignOut({ isShowing = false, onClose }: SignOutProps) {
useEffect(() => void analytics.track('sign-out'), [analytics]);
const { signOut } = useKeyActions();
const navigate = useNavigate();

// FIXME same bug as SwitchAcccount dialog where we call hooks from useWalletType when no wallet yet set
if (!isShowing) return null;
return (
<SignOutLayout
isShowing={isShowing}
Expand Down

0 comments on commit c6d2507

Please sign in to comment.