Skip to content

Commit

Permalink
Fix issue with pending balance breaking ui
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromcunha committed Oct 30, 2024
1 parent 8c3699b commit 82b6552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/components/widgets/SwapWidgetRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ const SwapWidgetRenderer: FC<SwapWidgetRendererProps> = ({
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
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/useBitcoinBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default (address?: string, queryOptions?: Partial<QueryOptions>) => {

return {
...response,
balance: response.data,
balance: response.data?.balance,
queryKey
} as ReturnType<QueryType> & {
balance: bigint | undefined
Expand Down

0 comments on commit 82b6552

Please sign in to comment.