Skip to content

Commit

Permalink
Merge pull request #1356 from bancorprotocol/fix/trade-token-selection
Browse files Browse the repository at this point in the history
Fix trade token selection onEnter
  • Loading branch information
tiagofilipenunes authored Jul 16, 2024
2 parents cfada36 + d28e5d0 commit cf0763d
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/screenshots/strategy/overlapping/Overlapping/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export const ModalTradeTokenList: ModalFC<ModalTradeTokenListData> = ({
setValue={setSearch}
className="rounded-8"
onKeyDown={(e) => {
if (e.key === 'Enter') handleSelect(tradePairs[0]);
if (e.key === 'Enter' && !!tradePairs.length)
handleSelect(tradePairs[0]);
}}
aria-label="Search Token Pair"
data-testid="search-token-pair"
Expand Down

0 comments on commit cf0763d

Please sign in to comment.