mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix display of Yat alert when address is empty (#484)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user