Skip to content

Commit 44a6b5e

Browse files
committed
Remove whitespaces from network location input
Common paste issue
1 parent f50b8c2 commit 44a6b5e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- added: Buy conversion tracking for Moonpay
66
- added: Error tracking for failure to report conversions to referral server
7+
- changed: Remove whitespaces from custom token contract address input
78
- fixed: Clear previous swap errors when new amounts are entered or swap assets are changed in `SwapCreateScene`
89
- fixed: Cases where it was possible to create duplicate custom tokens
910
- fixed: Message about overriding a built-in token contract, which is not possible to do

src/components/scenes/EditTokenScene.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function EditTokenSceneComponent(props: Props) {
224224
onChangeText={value =>
225225
setLocation(location => {
226226
const out = new Map(location)
227-
out.set(item.key, value)
227+
out.set(item.key, value.replace(/\s/g, ''))
228228
return out
229229
})
230230
}

0 commit comments

Comments
 (0)