From 36a9c123b70abd99d95aaaeaf70845552667f0e9 Mon Sep 17 00:00:00 2001 From: Andy Cernera Date: Mon, 8 Jan 2024 14:52:44 +0900 Subject: [PATCH] fix: show season pass even if wallet is not connected --- packages/client/src/app/amalgema-ui/InventorySidebar.tsx | 8 ++------ packages/client/src/app/amalgema-ui/SeasonPass.tsx | 3 ++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/client/src/app/amalgema-ui/InventorySidebar.tsx b/packages/client/src/app/amalgema-ui/InventorySidebar.tsx index 68739af7c..0b7d6b211 100644 --- a/packages/client/src/app/amalgema-ui/InventorySidebar.tsx +++ b/packages/client/src/app/amalgema-ui/InventorySidebar.tsx @@ -68,12 +68,8 @@ export function InventorySidebar() {
- {address ? ( - <> - -
- - ) : null} + +
{address && ( <> diff --git a/packages/client/src/app/amalgema-ui/SeasonPass.tsx b/packages/client/src/app/amalgema-ui/SeasonPass.tsx index 8f05783b7..3410306eb 100644 --- a/packages/client/src/app/amalgema-ui/SeasonPass.tsx +++ b/packages/client/src/app/amalgema-ui/SeasonPass.tsx @@ -43,7 +43,7 @@ function useSeasonPassPrice(atTime: bigint) { return price; } -export function SeasonPass({ account }: { account: Hex }) { +export function SeasonPass({ account }: { account?: Hex }) { const { externalWorldContract, network: { publicClient, waitForTransaction }, @@ -158,6 +158,7 @@ export function SeasonPass({ account }: { account: Hex }) { buttonType="primary" size="md" className="w-full" + disabled={!account} > mint - {formatEthPrice(price)}