diff --git a/src/components/Grids/TradeOffers.tsx b/src/components/Grids/TradeOffers.tsx index d7045b9..8de2fd9 100644 --- a/src/components/Grids/TradeOffers.tsx +++ b/src/components/Grids/TradeOffers.tsx @@ -570,7 +570,6 @@ export const TradeOffers: React.FC = ({ acctName: item.acctName })); - console.log('data', data) offeringTrades.current = [ ...transformed?.filter( (coin) => coin?.foreignBlockchain === selectedCoin && coin?.mode === 'OFFERING' diff --git a/src/components/sell/CreateSell.tsx b/src/components/sell/CreateSell.tsx index 14720f4..b627de1 100644 --- a/src/components/sell/CreateSell.tsx +++ b/src/components/sell/CreateSell.tsx @@ -364,7 +364,6 @@ const StuckOrders = ({setOpenStuckOrders})=> { return timestampB - timestampA; // Newest first }); - console.log('filteredByAddress', filteredByAddress) return ( { + try { + const url = `/crosschain/unsignedfees/${address}` + const res = await fetch(url) + const data = await res.json() + if(data && data.length > 0){ + setIsPositive(true) + } else { + setIsPositive(false) + } + } catch (error) { + console.error(error) + } + }, []) + + const restartUnsignedFeeSocket = () => { + getUnsignedFees() setTimeout(() => initUnsignedFeeSocket(true), 50); }; @@ -100,20 +117,6 @@ export default function UnsignedFees({ qortAddress }) { }; }; - const getUnsignedFees = useCallback(async (address)=> { - try { - const url = `/crosschain/unsignedfees/${address}` - const res = await fetch(url) - const data = await res.json() - if(data && data.length > 0){ - setIsPositive(true) - } else { - setIsPositive(false) - } - } catch (error) { - console.error(error) - } - }, []) useEffect(() => { if (!qortAddress) return;