Skip to content

Commit

Permalink
NO_TITLE fix
Browse files Browse the repository at this point in the history
Just another PR build to fix NO_TITLES when titles exist.
  • Loading branch information
TheExpertNoob committed Apr 11, 2024
1 parent 1c2a154 commit 8d12401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private async Task<string> ComputePackageFileName(Content content, AccuratePacka
partValue = content.PatchTitleId;
break;
case PatternKeyword.TitleName:
var firstTitle = content.NacpData?.Titles.FirstOrDefault();
var firstTitle = content.NacpData?.Titles.FirstOrDefault(title => title != null && !string.IsNullOrEmpty(title.Name));
partValue = firstTitle != null ? firstTitle.Name : "NO_TITLE";
break;
case PatternKeyword.PackageType:
Expand Down

0 comments on commit 8d12401

Please sign in to comment.