@@ -166,7 +166,7 @@ export function swapErrorToUserReadableMessage(error: any): string {
...
@@ -166,7 +166,7 @@ export function swapErrorToUserReadableMessage(error: any): string {
case'TF':
case'TF':
return'The output token cannot be transferred. There may be an issue with the output token. Note fee on transfer and rebase tokens are incompatible with Uniswap V3.'
return'The output token cannot be transferred. There may be an issue with the output token. Note fee on transfer and rebase tokens are incompatible with Uniswap V3.'
default:
default:
return'Unknown error. Please join the Discord to get help.'
return`Unknown error${reason?`: "${reason}"`:''}. Please join the Discord to get help.`
}
}
}
}
...
@@ -306,9 +306,7 @@ export function useSwapCallback(
...
@@ -306,9 +306,7 @@ export function useSwapCallback(
// otherwise, the error was unexpected and we need to convey that
// otherwise, the error was unexpected and we need to convey that