Skip to content

Commit

Permalink
🐛 Fix closing achievement page
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Jan 31, 2025
1 parent 74b4775 commit 7cda110
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/profile/src/components/achievements/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function Achievements() {

const { address } = useParams<{ address: string }>();
const { username } = useUsername({ address: address || self || "" });
const { project, namespace, chainId, openSettings } = useConnection();
const { closeModal, project, namespace, chainId, openSettings } =
useConnection();

const [activeTab, setActiveTab] = useState<"trophies" | "leaderboard">(
"trophies",
Expand Down Expand Up @@ -91,9 +92,8 @@ export function Achievements() {
}
chainId={chainId}
openSettings={openSettings}
onBack={() => {
navigate(".");
}}
onClose={isSelf ? closeModal : undefined}
onBack={isSelf ? undefined : () => navigate(".")}
/>

{achievements.length ? (
Expand Down

0 comments on commit 7cda110

Please sign in to comment.