Add check that tag getting converted match expected tags from rest of status payload

main
Hank Grabowski 2023-11-29 18:36:22 -06:00
rodzic 9b778999e5
commit 6efc9ec122
1 zmienionych plików z 4 dodań i 6 usunięć

Wyświetl plik

@ -31,12 +31,10 @@ void _updateSwapTagLinks(Node node, List<String> tags) {
} else { } else {
tag = pathEnd; tag = pathEnd;
} }
// final tagLowercase = tag.toLowerCase(); final tagLowercase = tag.toLowerCase();
// final hasExpectedTag = tags final hasExpectedTag = tags
// .firstWhere((t) => t.toLowerCase() == tagLowercase, .firstWhere((t) => t.toLowerCase() == tagLowercase, orElse: () => '')
// orElse: () => '') .isNotEmpty;
// .isNotEmpty;
const hasExpectedTag = true;
if (hasExpectedTag) { if (hasExpectedTag) {
final profile = getIt<AccountsService>().currentProfile; final profile = getIt<AccountsService>().currentProfile;
final newTagUrl = generateTagUrlFromProfile(profile, tag); final newTagUrl = generateTagUrlFromProfile(profile, tag);