diff --git a/lib/pages/send_view/send_view.dart b/lib/pages/send_view/send_view.dart index b8bcc1f6d..905bac258 100644 --- a/lib/pages/send_view/send_view.dart +++ b/lib/pages/send_view/send_view.dart @@ -1785,5 +1785,9 @@ String formatAddress(String epicAddress) { epicAddress = epicAddress.replaceAll("http://", ""); epicAddress = epicAddress.replaceAll("https://", ""); } + // strip mailto: prefix + if (epicAddress.startsWith("mailto:")) { + epicAddress = epicAddress.replaceAll("mailto:", ""); + } return epicAddress; } diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart index 588af3fd0..36c1de454 100644 --- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart +++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_send.dart @@ -1353,5 +1353,9 @@ String formatAddress(String epicAddress) { epicAddress = epicAddress.replaceAll("http://", ""); epicAddress = epicAddress.replaceAll("https://", ""); } + // strip mailto: prefix + if (epicAddress.startsWith("mailto:")) { + epicAddress = epicAddress.replaceAll("mailto:", ""); + } return epicAddress; }