fix display of Yat alert when address is empty (#484)

This commit is contained in:
Serhii
2022-08-26 16:29:00 +01:00
committed by GitHub
parent ad0666d4f6
commit 31a57fc4d3
+1
View File
@@ -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;