diff --git a/src/components/swap/CowWidgetCommunicator.tsx b/src/components/swap/CowWidgetCommunicator.tsx index c556e05a33..55063b803e 100644 --- a/src/components/swap/CowWidgetCommunicator.tsx +++ b/src/components/swap/CowWidgetCommunicator.tsx @@ -45,19 +45,6 @@ export const CowWidgetCommunicator = ({ sell }: Params) => { const dispatch = useAppDispatch() const [toasts, setToasts] = useState([]) - const toast = toasts.length > 0 ? toasts[0] : undefined - - const openToast = (message: string) => { - setToasts((t) => [...t, message]) - } - - const handleClose = (event: React.SyntheticEvent | Event, reason?: string) => { - if (reason === 'clickaway') { - return - } - - setToasts((t) => t.slice(1)) - } const groupKey = 'swap-order-status' const listeners = useMemo(() => { @@ -124,11 +111,10 @@ export const CowWidgetCommunicator = ({ sell }: Params) => { ) break } - openToast(event.message) }, }, ] - }, [openToast]) + }, [dispatch]) const [params, setParams] = useState(null) useEffect(() => { diff --git a/src/services/safe-wallet-provider/index.ts b/src/services/safe-wallet-provider/index.ts index cb6b3a015e..ac61be0915 100644 --- a/src/services/safe-wallet-provider/index.ts +++ b/src/services/safe-wallet-provider/index.ts @@ -112,6 +112,7 @@ export class SafeWalletProvider { const tx = { value: '0', data: '0x', + // @ts-ignore ...(params[0] as { gas: string | number; to: string }), } return this.eth_sendTransaction(tx, appInfo)