Skip to content

Commit

Permalink
fix: enable faucet on Interlay testnet (#1289)
Browse files Browse the repository at this point in the history
* fix: enable faucet on Interlay testnet

* fix: prefer governance token ticker to symbol
  • Loading branch information
tomjeatt authored Jun 14, 2023
1 parent d5818f3 commit c4f05dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parts/Topbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Topbar = (): JSX.Element => {
const { selectProps } = useSignMessage();
const { list } = useNotifications();

const kintBalanceIsZero = getAvailableBalance('KINT')?.isZero();
const governanceTokenBalanceIsZero = getAvailableBalance(GOVERNANCE_TOKEN.ticker)?.isZero();

const handleRequestFromFaucet = async (): Promise<void> => {
if (!selectedAccount) return;
Expand Down Expand Up @@ -106,7 +106,7 @@ const Topbar = (): JSX.Element => {
{isBanxaEnabled ? <FundWallet /> : <GetGovernanceTokenUI className={SMALL_SIZE_BUTTON_CLASSES} />}
{selectedAccount !== undefined && (
<>
{process.env.REACT_APP_FAUCET_URL && kintBalanceIsZero && (
{process.env.REACT_APP_FAUCET_URL && governanceTokenBalanceIsZero && (
<>
<InterlayDenimOrKintsugiMidnightOutlinedButton
className={SMALL_SIZE_BUTTON_CLASSES}
Expand Down

1 comment on commit c4f05dc

@vercel
Copy link

@vercel vercel bot commented on c4f05dc Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.