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

Update Get Support link on Search page #144

Merged
merged 1 commit into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/orders/OrderNotFound/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const OrderAddressNotFound: React.FC = (): JSX.Element => {
<SearchContent>
<Search searchString={wasRedirected ? '' : searchString} submitSearchImmediatly={!wasRedirected} />
<span>or</span>
<Support href="https://discord.gg/cowprotocol/" target="_blank" rel="noopener noreferrer">
<Support href="https://discord.com/invite/cowprotocol" target="_blank" rel="noopener noreferrer">
Get Support
<img src={SupportIcon} />
</Support>
Expand Down
8 changes: 4 additions & 4 deletions src/hooks/useTxBatchTrades.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export function useTxBatchTrades(
const [error, setError] = useState('')
const [txBatchTrades, setTxBatchTrades] = useState<TxBatchTrades>({ trades: [], transfers: [] })
const [accounts, setAccounts] = useState<Accounts>()
const txOrders = usePrevious(JSON.stringify(orders?.map((o) => ({ owner: o.owner, kind: o.kind, receiver: o.receiver })))) // We need to do a deep comparison here to avoid useEffect to be called twice (Orders array is populated partially from different places)
const txOrders = usePrevious(
JSON.stringify(orders?.map((o) => ({ owner: o.owner, kind: o.kind, receiver: o.receiver }))),
) // We need to do a deep comparison here to avoid useEffect to be called twice (Orders array is populated partially from different places)
const [erc20Addresses, setErc20Addresses] = useState<string[]>([])
const { value: valueErc20s, isLoading: areErc20Loading } = useMultipleErc20({ networkId, addresses: erc20Addresses })

Expand Down Expand Up @@ -120,9 +122,7 @@ export function useTxBatchTrades(
} finally {
setIsLoading(false)
}
},
[orders],
)
}, [])

useEffect(() => {
if (!networkId || !txOrders) {
Expand Down