Commit 1f6f1f1d authored by Jack Short's avatar Jack Short Committed by GitHub

fix: smart contract wallets unsupported (#7226)

* fix: smart contract wallets unsupported

* logging to amp

* response was deleted
parent 1c142bb7
...@@ -122,7 +122,10 @@ export function useUniversalRouterSwapCallback( ...@@ -122,7 +122,10 @@ export function useUniversalRouterSwapCallback(
txHash: response.hash, txHash: response.hash,
...analyticsContext, ...analyticsContext,
}) })
throw new ModifiedSwapError()
if (!response.data || response.data.length === 0 || response.data === '0x') {
throw new ModifiedSwapError()
}
} }
return response return response
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment