fix: smart contract wallets unsupported (#7226)

* fix: smart contract wallets unsupported

* logging to amp

* response was deleted
This commit is contained in:
Jack Short 2023-08-24 16:56:07 -04:00 committed by GitHub
parent 1c142bb71f
commit 1f6f1f1dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,8 +122,11 @@ export function useUniversalRouterSwapCallback(
txHash: response.hash,
...analyticsContext,
})
if (!response.data || response.data.length === 0 || response.data === '0x') {
throw new ModifiedSwapError()
}
}
return response
})
return {