Skip to content

Commit b865c93

Browse files
authored
fix: handle newlines in address input (#13)
Signed-off-by: ryanml <[email protected]>
1 parent 263efc9 commit b865c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/Send/components/ContactInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const ContactInput = ({
205205
multiline
206206
minRows={2}
207207
onChange={(e) => {
208-
onChange(identifyAddress(e.target.value));
208+
onChange(identifyAddress(e.target.value.trim()));
209209
setCursor(e.target.selectionStart);
210210
}}
211211
value={getInputDisplayValue()}

0 commit comments

Comments
 (0)