HomePhabricator

[Cashtab][Alias] Add trimmed input null check after input clearance

Description

[Cashtab][Alias] Add trimmed input null check after input clearance

Summary:
T3363

UAT picked up an edge case where after inputting a valid alias input and then clearing it from the input field, the keyup event will trigger an API call on the-now null value.
This diff prevents the alias API check if the trimmed input value is null or an empty string.

Test Plan:
npm test
npm start
enter a valid alias, wait for 1 second, then delete it
ensure no "Error retrieving alias status" pops up on the UI
regression test the recent feature where entering a registered alias (e.g. watermelon) will render an input error on the frontend

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D14918

Details

Provenance
emackAuthored on Dec 6 2023, 00:44
emackPushed on Dec 6 2023, 04:39
Reviewer
Restricted Project
Differential Revision
D14918: [Cashtab][Alias] Add trimmed input null check after input clearance
Parents
rABCd65b0e51d066: [Cashtab][Alias] Status check upon alias registration input pause
Branches
Unknown
Tags
Unknown