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 +};