Skip to content

Commit

Permalink
chore: show available not total balance
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed May 4, 2021
1 parent c09b09d commit 20db857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/home/balance-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const BalanceCard: FC<BalanceCardProps> = props => {
const { address, onSelectReceive, onSelectSend, onRequestTestnetStx } = props;

const [requestingTestnetStx, setRequestingTestnetStx] = useState(false);
const { totalBalance, availableBalance, lockedBalance } = useBalance();
const { availableBalance, lockedBalance } = useBalance();

const requestTestnetStacks = async (e: React.MouseEvent) => {
if (NETWORK !== 'testnet') return;
Expand Down Expand Up @@ -52,7 +52,7 @@ export const BalanceCard: FC<BalanceCardProps> = props => {
)}
</Flex>
<Text fontSize="40px" lineHeight="56px" fontWeight="bold" letterSpacing="-0.01em">
{totalBalance === null ? '–' : toHumanReadableStx(totalBalance.toString())}
{availableBalance === null ? '–' : toHumanReadableStx(availableBalance.toString())}
</Text>

{features.stacking && lockedBalance !== null && lockedBalance.isGreaterThan(0) && (
Expand Down

0 comments on commit 20db857

Please sign in to comment.