Skip to content

Commit

Permalink
TW-1278: Fix double TEZ in dropdown of Send form (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tsx authored Jan 23, 2024
1 parent 4bcf660 commit 376189a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/templates/SendForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ const SendForm = memo<Props>(({ assetSlug = TEZ_TOKEN_SLUG }) => {
() => {
const sortedSlugs = Array.from(tokensSlugs).sort(tokensSortPredicate);

return !assetSlug || sortedSlugs.some(s => s === assetSlug)
if (!assetSlug || assetSlug === TEZ_TOKEN_SLUG) return [TEZ_TOKEN_SLUG, ...sortedSlugs];

return sortedSlugs.some(s => s === assetSlug)
? [TEZ_TOKEN_SLUG, ...sortedSlugs]
: [TEZ_TOKEN_SLUG, assetSlug, ...sortedSlugs];
},
Expand Down

0 comments on commit 376189a

Please sign in to comment.