Skip to content

Commit

Permalink
fix: hide status bar when not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Nov 24, 2022
1 parent af287a7 commit 736e394
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/core/balance-ramp/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function openModalWithData(
) {
if (typeof window === 'undefined') return;

const h = Number(args.height || 550);
const h = Number(args.height || 600);
const w = Number(args.width || 600);
const y = window?.top
? window.top.outerHeight / 2 + window.top.screenY - h / 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const TieredSalesMintStatusBar = ({ className }: Props) => {
<div className="flex items-center gap-2">
<Spinner /> Checking your wallet eligibility...
</div>
) : (
) : isConnected ? (
<>
{mintLoading && (
<div className="flex items-center gap-2">
Expand All @@ -32,11 +32,11 @@ export const TieredSalesMintStatusBar = ({ className }: Props) => {
{txReceipt || txResponse ? (
<TransactionLink txReceipt={txReceipt} txResponse={txResponse} />
) : null}
{isConnected && !mintLoading && mintError && (
{!mintLoading && mintError && (
<Errors title="Cannot mint" error={mintError} />
)}
</>
)}
) : null}
</div>
);
};

0 comments on commit 736e394

Please sign in to comment.