Skip to content

Commit

Permalink
chore: display fuel points
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 committed Oct 24, 2024
1 parent 200cd8c commit 1a2a4ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions apps/frontend/src/components/Navbar/Points.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Points = () => {

const { isConnected } = useIsConnected();

// const { data: fuelPoints } = useFuelPoints();
const { data: fuelPoints } = useFuelPoints();

// const handleCopy = async (value: string) => {
// setIsCopied(true);
Expand Down Expand Up @@ -71,8 +71,7 @@ export const Points = () => {
<InfoIcon text="Points earned through the Fuel Points Program" />
</div>
<span className="text-lavender font-semibold">
{/* {isConnected ? fuelPoints : 'Connect Wallet'} */}
Coming Soon
{isConnected ? fuelPoints : 'Connect Wallet'}
</span>
</div>
{/* <Link href="/leaderboard" className="w-full mt-4" prefetch={false}>
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/hooks/useFuelPoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useFuelPoints = () => {

try {
const response = await fetch(
`${appConfig.client.fuelOblApi}/fuel/epoch1_leaderboard?user_address=${account}`
`${appConfig.client.fuelOblApi}/fuel/epoch1_leaderboard?user_address=${account.toLowerCase()}`
);

if (!response.ok) {
Expand Down

0 comments on commit 1a2a4ea

Please sign in to comment.