From adc4a3aeafc10b65fd32bd7fbdb5d9254d46edc0 Mon Sep 17 00:00:00 2001 From: Nur Fikri Date: Sat, 2 Nov 2024 05:49:46 +0700 Subject: [PATCH] release alpha 26 --- packages/widget-v2/package.json | 2 +- packages/widget-v2/src/hooks/useGetSourceBalance.ts | 1 + .../src/pages/SwapPage/useCleanupDebouncedAtoms.ts | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/widget-v2/package.json b/packages/widget-v2/package.json index 2feb53be..5316a330 100644 --- a/packages/widget-v2/package.json +++ b/packages/widget-v2/package.json @@ -1,7 +1,7 @@ { "name": "@skip-go/widget", "description": "Swap widget", - "version": "3.0.0-alpha.22", + "version": "3.0.0-alpha.26", "repository": "https://github.com/skip-mev/widget", "type": "module", "scripts": { diff --git a/packages/widget-v2/src/hooks/useGetSourceBalance.ts b/packages/widget-v2/src/hooks/useGetSourceBalance.ts index ac5d68d7..ebbe3514 100644 --- a/packages/widget-v2/src/hooks/useGetSourceBalance.ts +++ b/packages/widget-v2/src/hooks/useGetSourceBalance.ts @@ -23,6 +23,7 @@ export const useGetSourceBalance = () => { amount: 0, formattedAmount: "0", error: undefined, + decimals: undefined }; } return skipBalances?.chains?.[chainID]?.denoms?.[denom]; diff --git a/packages/widget-v2/src/pages/SwapPage/useCleanupDebouncedAtoms.ts b/packages/widget-v2/src/pages/SwapPage/useCleanupDebouncedAtoms.ts index 18086a88..2eb45e61 100644 --- a/packages/widget-v2/src/pages/SwapPage/useCleanupDebouncedAtoms.ts +++ b/packages/widget-v2/src/pages/SwapPage/useCleanupDebouncedAtoms.ts @@ -16,11 +16,11 @@ export const useCleanupDebouncedAtoms = () => { useEffect(() => { return () => { - cleanupDebouncedSourceAssetAmount(); - cleanupDebouncedDestinationAssetAmount(); + cleanupDebouncedSourceAssetAmount(undefined); + cleanupDebouncedDestinationAssetAmount(undefined); }; }, [ cleanupDebouncedDestinationAssetAmount, cleanupDebouncedSourceAssetAmount, ]); -}; \ No newline at end of file +};