Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
remove btc button temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jun 27, 2024
1 parent 9e2f40c commit 22a8c36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function SiteHeader() {
<MainNav />
<div className="flex flex-1 items-center justify-end space-x-4">
<nav className="flex items-center space-x-1">
<TooltipProvider>
{/* <TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button
Expand All @@ -48,7 +48,7 @@ export function SiteHeader() {
</TooltipContent>
)}
</Tooltip>
</TooltipProvider>
</TooltipProvider> */}
<ConnectButton
chainStatus="icon"
accountStatus={{
Expand Down
12 changes: 7 additions & 5 deletions components/transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,10 @@ const Transfer = () => {
}
}
const debouncedFetchQuoteCrossChain = debounce(fetchQuoteCrossChain, 500)
setDestinationAmount("")
if (!sendType) return
if (!sendType) {
setDestinationAmountIsLoading(false)
return
}
if (
[
"crossChainSwap",
Expand Down Expand Up @@ -372,11 +374,11 @@ const Transfer = () => {
withdraw: boolean
) => {
const dIsZRC20 = d?.zrc20 || (d?.coin_type === "ZRC20" && d?.contract)
const sAmountValid = sourceAmount && parseFloat(sourceAmount)
const isAmountValid = sourceAmount && parseFloat(sourceAmount)
const dIsZETA = d.coin_type === "Gas" && d.chain_id === 7001
const sourceAddress = s.coin_type === "ZRC20" ? s.contract : s.zrc20

if (sAmountValid > 0 && (dIsZRC20 || dIsZETA) && sourceAddress) {
if (!isAmountValid) return "0"
if (isAmountValid > 0 && (dIsZRC20 || dIsZETA) && sourceAddress) {
// setDestinationAmount("")
// updateError("insufficientLiquidity", { enabled: false })
let amount
Expand Down

0 comments on commit 22a8c36

Please sign in to comment.