mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
fix display of Yat alert when address is empty (#484)
This commit is contained in:
parent
ad0666d4f6
commit
31a57fc4d3
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ extension Emoji on String {
|
|||
|
||||
bool _hasOnlyEmojis() {
|
||||
final parsedText = this.replaceAll(' ', '');
|
||||
if(parsedText.isEmpty) return false;
|
||||
for (final c in Characters(parsedText))
|
||||
if (!REGEX_EMOJI.hasMatch(c)) return false;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue