From 9a327f6d638f0a197c334618a52de81a56dbe781 Mon Sep 17 00:00:00 2001 From: Iulia Cimpeanu Date: Fri, 28 Nov 2025 11:35:21 +0200 Subject: [PATCH 1/4] Fixed nativeAuth --- .../widgets/NativeAuth/NativeAuth.tsx | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx index 883eefa..a75cb8a 100644 --- a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx +++ b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx @@ -7,27 +7,18 @@ import { OutputContainer } from '@/components/OutputContainer'; import { useGetLoginInfo, useGetNetworkConfig, - MvxFormatAmount, - FormatAmountController, - DIGITS, - DECIMALS + useGetAccount, + FormatAmount } from '@/lib'; import { useGetProfile } from './hooks'; import { Username } from '../Account/components'; export const NativeAuth = () => { const { tokenLogin, isLoggedIn } = useGetLoginInfo(); + const { balance } = useGetAccount(); const { isLoading, profile, getProfile } = useGetProfile(); const { network } = useGetNetworkConfig(); - const { isValid, valueDecimal, valueInteger, label } = - FormatAmountController.getData({ - digits: DIGITS, - decimals: DECIMALS, - egldLabel: network.egldLabel, - input: profile?.balance ?? '0' - }); - useEffect(() => { // On page refresh, tokenInfo is null which implies that we do not have access to loginInfo data if (isLoggedIn && tokenLogin?.nativeAuthToken) { @@ -62,12 +53,10 @@ export const NativeAuth = () => {
-
From f6f136366d885f9fcb451f7659cb8681c008f86e Mon Sep 17 00:00:00 2001 From: Iulia Cimpeanu Date: Fri, 28 Nov 2025 11:40:30 +0200 Subject: [PATCH 2/4] Updated nativeAuth --- src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx index a75cb8a..2561d06 100644 --- a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx +++ b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx @@ -17,7 +17,6 @@ export const NativeAuth = () => { const { tokenLogin, isLoggedIn } = useGetLoginInfo(); const { balance } = useGetAccount(); const { isLoading, profile, getProfile } = useGetProfile(); - const { network } = useGetNetworkConfig(); useEffect(() => { // On page refresh, tokenInfo is null which implies that we do not have access to loginInfo data From 065e2cd4a2c38547cf5a0c15465053cf9dfd0e3e Mon Sep 17 00:00:00 2001 From: Iulia Cimpeanu Date: Fri, 28 Nov 2025 11:51:31 +0200 Subject: [PATCH 3/4] Removed unused import --- src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx index 2561d06..b69e90a 100644 --- a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx +++ b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx @@ -6,7 +6,6 @@ import { OutputContainer } from '@/components/OutputContainer'; import { useGetLoginInfo, - useGetNetworkConfig, useGetAccount, FormatAmount } from '@/lib'; From a7a5e961cde716a2e9f451fab9538dfdd52cf065 Mon Sep 17 00:00:00 2001 From: Iulia Cimpeanu Date: Fri, 28 Nov 2025 12:20:58 +0200 Subject: [PATCH 4/4] Updated showLabel param --- src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx index b69e90a..001c16b 100644 --- a/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx +++ b/src/app/dashboard/widgets/NativeAuth/NativeAuth.tsx @@ -54,7 +54,7 @@ export const NativeAuth = () => {