forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InputWithClearButton [nfc]: Remove unnecessary
canBeCleared
state.
Greg points out [1] that `canBeCleared` is always the same as `text.length > 0`. So, just drop this piece of state and compute the value we need when we need it. [1] zulip#4914 (comment)
- Loading branch information
1 parent
cd2b7f5
commit 9638f00
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters