Skip to content

Commit

Permalink
fixing useMemo and balance in SOL
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji43 committed Oct 13, 2024
1 parent 21cd11a commit 60f855f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/courses/intro-to-solana/interact-with-wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ ensure this is to wrap your entire app in `ConnectionProvider` and

```tsx
import { NextPage } from "next";
import { FC, ReactNode } from "react";
import { FC, ReactNode, useMemo } from "react";
import {
ConnectionProvider,
WalletProvider,
Expand Down Expand Up @@ -159,7 +159,7 @@ full-featured wallet experience is to use `WalletModalProvider` and

```tsx
import { NextPage } from "next";
import { FC, ReactNode } from "react";
import { FC, ReactNode, useMemo } from "react";
import {
ConnectionProvider,
WalletProvider,
Expand Down Expand Up @@ -267,7 +267,7 @@ export const BalanceDisplay: FC = () => {

return (
<div>
<p>{publicKey ? `Balance: ${balance / LAMPORTS_PER_SOL} SOL` : ""}</p>
<p>{publicKey ? `Balance: ${balance} SOL` : ""}</p>
</div>
);
};
Expand Down

0 comments on commit 60f855f

Please sign in to comment.