Skip to content

Commit

Permalink
fix: show season pass even if wallet is not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
Kooshaba committed Jan 8, 2024
1 parent 17e3ab4 commit 36a9c12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 2 additions & 6 deletions packages/client/src/app/amalgema-ui/InventorySidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ export function InventorySidebar() {

<div className="h-4 shrink-0"></div>

{address ? (
<>
<SeasonPass account={address} />
<div className="h-4" />
</>
) : null}
<SeasonPass account={address} />
<div className="h-4" />

{address && (
<>
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/app/amalgema-ui/SeasonPass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -158,6 +158,7 @@ export function SeasonPass({ account }: { account: Hex }) {
buttonType="primary"
size="md"
className="w-full"
disabled={!account}
>
mint - {formatEthPrice(price)}
</Button>
Expand Down

0 comments on commit 36a9c12

Please sign in to comment.