diff --git a/packages/ui/src/components/widgets/SwapWidgetRenderer.tsx b/packages/ui/src/components/widgets/SwapWidgetRenderer.tsx index eb1204e3..c79c1a8f 100644 --- a/packages/ui/src/components/widgets/SwapWidgetRenderer.tsx +++ b/packages/ui/src/components/widgets/SwapWidgetRenderer.tsx @@ -326,7 +326,7 @@ const SwapWidgetRenderer: FC = ({ destinationChainId: toToken.chainId, originCurrency: fromToken.address, destinationCurrency: toToken.address, - recipient: getDeadAddress(fromChain?.vmType), + recipient: getDeadAddress(toChain?.vmType), tradeType, appFees: providerOptionsContext.appFees, amount: '10000000000000000000000', //Hardcode an extremely high number diff --git a/packages/ui/src/hooks/useBitcoinBalance.ts b/packages/ui/src/hooks/useBitcoinBalance.ts index 5ca4b5e8..2a30f3d4 100644 --- a/packages/ui/src/hooks/useBitcoinBalance.ts +++ b/packages/ui/src/hooks/useBitcoinBalance.ts @@ -75,7 +75,7 @@ export default (address?: string, queryOptions?: Partial) => { return { ...response, - balance: response.data, + balance: response.data?.balance, queryKey } as ReturnType & { balance: bigint | undefined