diff --git a/src/client/src/views/swap/StartSwap.tsx b/src/client/src/views/swap/StartSwap.tsx index e5903658..995c2e1e 100644 --- a/src/client/src/views/swap/StartSwap.tsx +++ b/src/client/src/views/swap/StartSwap.tsx @@ -6,7 +6,6 @@ import { import { Card, DarkSubTitle, - Separation, SingleLine, SubTitle, } from '../../components/generic/Styled'; @@ -21,7 +20,6 @@ import { useCreateBoltzReverseSwapMutation } from '../../graphql/mutations/__gen import { toast } from 'react-toastify'; import { getErrorContent } from '../../utils/error'; import { useMutationResultWithReset } from '../../hooks/UseMutationWithReset'; -import { saveToPc } from '../../utils/helpers'; import { useSwapsDispatch } from './SwapContext'; type StartSwapProps = { @@ -45,8 +43,6 @@ export const StartSwap = ({ max, min }: StartSwapProps) => { const [isEdit, setIsEdit] = useState(false); const [address, setAddress] = useState(); - const [download, setDownload] = useState(true); - const dispatch = useSwapsDispatch(); const [getQuote, { data: _data, loading }] = @@ -61,15 +57,9 @@ export const StartSwap = ({ max, min }: StartSwapProps) => { type: 'add', swap: data.createBoltzReverseSwap, }); - download && - saveToPc( - JSON.stringify(data.createBoltzReverseSwap), - `Swap-${data.createBoltzReverseSwap.id}`, - false, - true - ); + resetMutation(); - }, [data, dispatch, resetMutation, download]); + }, [data, dispatch, resetMutation]); return ( @@ -129,17 +119,7 @@ export const StartSwap = ({ max, min }: StartSwapProps) => { inputCallback={value => setAddress(value)} /> )} - - - - setDownload(true)}> - Yes - - setDownload(false)}> - No - - - +