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

This commit is contained in:
Serhii 2022-08-26 18:29:00 +03:00 committed by GitHub
parent ad0666d4f6
commit 31a57fc4d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;