Skip to content

Commit

Permalink
Remove whitespaces from network location input
Browse files Browse the repository at this point in the history
Common paste issue
  • Loading branch information
Jon-edge committed Sep 20, 2024
1 parent ba1e9d5 commit 60b8af6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- changed: Remove whitespaces from custom token contract address input
- fixed: Clear previous swap errors when new amounts are entered or swap assets are changed in `SwapCreateScene`
- fixed: Cases where it was possible to create duplicate custom tokens
- fixed: Message about overriding a built-in token contract, which is not possible to do
Expand Down
2 changes: 1 addition & 1 deletion src/components/scenes/EditTokenScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function EditTokenSceneComponent(props: Props) {
onChangeText={value =>
setLocation(location => {
const out = new Map(location)
out.set(item.key, value)
out.set(item.key, value.replace(/[\n\s]/g, ''))
return out
})
}
Expand Down

0 comments on commit 60b8af6

Please sign in to comment.