Skip to content

Commit d2decfa

Browse files
authored
Legacy Position Banner: trigger update when changing accounts (#917)
1 parent 4aaa1ed commit d2decfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/app/src/comps/LegacyPositionsBanner/LegacyPositionsBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function LegacyPositionsBanner() {
2121
});
2222

2323
const showTransition = useTransition(
24-
Boolean(legacyPositions.data?.hasAnyPosition),
24+
Boolean(account.address && legacyPositions.data?.hasAnyPosition),
2525
{
2626
from: { marginTop: -41 },
2727
enter: { marginTop: 0 },

0 commit comments

Comments
 (0)