Skip to content

Commit ec99f0a

Browse files
committed
Remove whitespaces from network location input
Common paste issue
1 parent ba1e9d5 commit ec99f0a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

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

33
## Unreleased
44

5+
- changed: Remove whitespaces from custom token contract address input
56
- fixed: Clear previous swap errors when new amounts are entered or swap assets are changed in `SwapCreateScene`
67
- fixed: Cases where it was possible to create duplicate custom tokens
78
- fixed: Message about overriding a built-in token contract, which is not possible to do

src/components/scenes/EditTokenScene.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ 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(/[\n\s]/g, ''))
228+
console.debug(out)
228229
return out
229230
})
230231
}

0 commit comments

Comments
 (0)