MetaMask / MetaMask/metamask-mobile

[Bug] Input Send Amount is cleared unintentionally

Open
#6,400 2 comments 0 reactions 0 assignees View on GitHub
Sev2-normal team-confirmations-planning type-bug type-pinned
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

**Describe the bug**
Whenever I am performing a Send transaction, when I input and amount, this is cleared unintentionally and I have to add the amount again.
It seems that this happens whenever we input a value fast enough. If we wait 2-3 seconds before entering a value then this behavior does not occur.

This is inconvenient both for users and for automate testing.

**Screenshots**

https://github.com/MetaMask/metamask-mobile/assets/54408225/5dad7433-e218-4ecf-982f-9a21a64ce115

**To Reproduce**
_Steps to reproduce the behavior_
1. Click Send ETH
2. Add Recipient
3. Add Amount
4. See how amount is cleared and you have to input the value again

**Expected behavior**
Whenever we input an amount, it should not be cleared unintentionally

**Smartphone (please complete the following information):**
- Device: Pixel 6
- OS: Android
- App Version: `v6.6.0` (it's an old issue though)

-------------------------------------------------------------
_to be added after bug submission by internal support / PM_
**Severity**

- How critical is the impact of this bug on a user?
- Add stats if available on % of customers impacted
- Is this visible to all users?
- Is this tech debt?

Contributor guide

Open the contributing guide

Research direction

Reproduce the Send ETH flow on Android using the listed steps, entering the amount quickly after adding a recipient, and compare it with the delayed-entry case. Trace the send amount input flow to identify why the value is cleared, then verify that the amount remains present during fast input and that the behavior is covered for automated testing.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.