Skip to content

Commit

Permalink
Create session footer should not expand (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura authored Aug 16, 2024
1 parent f38b873 commit 108effe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/keychain/src/components/layout/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ export function Footer({
const { origin, policies } = useConnection();
const { variant, footer } = useLayout();
const isExpandable = useMemo(
() => !!origin && !!policies.length && variant === "connect" && !isSignup,
[origin, policies, variant, isSignup],
() =>
!!origin &&
!!policies.length &&
variant === "connect" &&
!isSignup &&
!hideTxSummary,
[origin, policies, variant, isSignup, hideTxSummary],
);
const hostname = useMemo(
() => (origin ? new URL(origin).hostname : undefined),
Expand Down

0 comments on commit 108effe

Please sign in to comment.