Skip to content

Commit bdf7846

Browse files
authored
fix: corrects wallet balance calculation (#2624)
* fix: corrects wallet balance calculation n * fix: simplify response creation in provider router * feat: add back navigation button to AuthPage component
1 parent 4665f2b commit bdf7846

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

apps/deploy-web/src/components/auth/AuthPage/AuthPage.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use client";
22

33
import { useCallback, useRef, useState } from "react";
4-
import { Separator, Tabs, TabsContent, TabsList, TabsTrigger } from "@akashnetwork/ui/components";
4+
import { Button, Separator, Tabs, TabsContent, TabsList, TabsTrigger } from "@akashnetwork/ui/components";
55
import { useMutation } from "@tanstack/react-query";
6-
import { DollarSignIcon, RocketIcon, ZapIcon } from "lucide-react";
6+
import { DollarSignIcon, RocketIcon, Undo2, ZapIcon } from "lucide-react";
77
import { useSearchParams } from "next/navigation";
88
import { useRouter } from "next/router";
99
import { NextSeo } from "next-seo";
@@ -41,6 +41,7 @@ export const DEPENDENCIES = {
4141
RocketIcon,
4242
ZapIcon,
4343
AkashConsoleLogo,
44+
Button,
4445
Separator,
4546
useUser,
4647
useSearchParams,
@@ -188,6 +189,12 @@ export function AuthPage({ dependencies: d = DEPENDENCIES }: Props = {}) {
188189
(isDeploymentReturnTo && (
189190
<>
190191
<d.SocialAuth onSocialLogin={redirectToSocialLogin} />
192+
<div className="mt-4 flex">
193+
<d.Button type="button" onClick={navigateBack} variant="outline" className="h-9 flex-1 border-neutral-200 dark:border-neutral-800">
194+
<Undo2 className="mr-2 h-4 w-4" />
195+
Go Back
196+
</d.Button>
197+
</div>
191198
</>
192199
)) || (
193200
<d.Tabs value={activeView} onValueChange={setActiveView} className="w-full">

apps/deploy-web/src/hooks/useWalletBalance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const useWalletBalance = (): WalletBalanceReturnType => {
6363
totalDeploymentEscrowUUSDC: balances.deploymentEscrowUUSDC,
6464
totalDeploymentEscrowUSD: totalDeploymentEscrowUSD,
6565
totalDeploymentGrantsUAKT: balances.deploymentGrantsUAKT,
66-
totalDeploymentGrantsUUSDC: balances.deploymentEscrowUAKT,
66+
totalDeploymentGrantsUUSDC: balances.deploymentGrantsUUSDC,
6767
totalDeploymentGrantsUSD: totalDeploymentGrantsUSD
6868
});
6969
}

package-lock.json

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)