Skip to content

Commit 61ca7ca

Browse files
sviderockjeanregisser
authored andcommitted
fix: toggleAmountType handle broken (#6412)
### Description As per the title. ### Test plan Works ### Related issues ENG-170 ### Backwards compatibility Yes ### Network scalability If a new NetworkId and/or Network are added in the future, the changes in this PR will: - [x] Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)
1 parent 540306e commit 61ca7ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/TokenEnterAmount.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ export default function TokenEnterAmount({
474474
<>
475475
{toggleAmountType && (
476476
<Touchable
477-
onPress={toggleAmountType}
477+
onPress={() => {
478+
toggleAmountType()
479+
}}
478480
style={styles.swapArrowContainer}
479481
testID={`${testID}/SwitchTokens`}
480482
hitSlop={variables.iconHitslop}

0 commit comments

Comments
 (0)