diff --git a/nym-wallet/CHANGELOG.md b/nym-wallet/CHANGELOG.md
index 8dd815a758..9ffc639975 100644
--- a/nym-wallet/CHANGELOG.md
+++ b/nym-wallet/CHANGELOG.md
@@ -2,6 +2,11 @@
## UNRELEASED
+## [nym-wallet-v1.1.10](https://github.com/nymtech/nym/releases/tag/nym-wallet-v1.1.10) (2023-02-21)
+
+- Remove non-zero and trailing white spaces
+- Add error description on failed send txs
+
## [nym-wallet-v1.1.9](https://github.com/nymtech/nym/releases/tag/nym-wallet-v1.1.9) (2023-02-14)
- Allow more flexibility for user when setting passwords ([#2993])
diff --git a/nym-wallet/src/components/Send/SendErrorModal.tsx b/nym-wallet/src/components/Send/SendErrorModal.tsx
index 18fb5b4b74..7c0adfa3e0 100644
--- a/nym-wallet/src/components/Send/SendErrorModal.tsx
+++ b/nym-wallet/src/components/Send/SendErrorModal.tsx
@@ -1,15 +1,17 @@
import React from 'react';
-import { SxProps } from '@mui/material';
+import { SxProps, Typography } from '@mui/material';
import { SimpleModal } from '../Modals/SimpleModal';
export const SendErrorModal = ({
onClose,
sx,
backdropProps,
+ error,
}: {
onClose: () => void;
sx?: SxProps;
backdropProps?: {};
+ error?: string;
}) => (
+ >
+ {error}
+
);
diff --git a/nym-wallet/src/components/Send/SendModal.tsx b/nym-wallet/src/components/Send/SendModal.tsx
index c1792c7354..5758b2ceae 100644
--- a/nym-wallet/src/components/Send/SendModal.tsx
+++ b/nym-wallet/src/components/Send/SendModal.tsx
@@ -22,7 +22,10 @@ export const SendModal = ({ onClose, hasStorybookStyles }: { onClose: () => void
const [txDetails, setTxDetails] = useState();
const { clientDetails, userBalance, network } = useContext(AppContext);
- const { fee, getFee } = useGetFee();
+ const { fee, getFee, feeError } = useGetFee();
+
+ // removes any zero-width spaces and trailing white space
+ const sanitizeAddress = (address: string) => address.replace(/[\u200B-\u200D\uFEFF]/g, '').trim();
const handleOnNext = async () => {
if (amount) {
@@ -60,7 +63,7 @@ export const SendModal = ({ onClose, hasStorybookStyles }: { onClose: () => void
if (isLoading) return ;
- if (sendError) return ;
+ if (sendError) return ;
if (txDetails) return ;
@@ -90,7 +93,7 @@ export const SendModal = ({ onClose, hasStorybookStyles }: { onClose: () => void
error={error}
denom={clientDetails?.display_mix_denom}
onAmountChange={(value) => setAmount(value)}
- onAddressChange={(value) => setToAddress(value)}
+ onAddressChange={(value) => setToAddress(sanitizeAddress(value))}
{...hasStorybookStyles}
/>
);