Skip to content

Commit d99bcca

Browse files
committed
fix: add participation check to transformCompany
1 parent aae4e5a commit d99bcca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/resources/deck.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function transformCompany(company, options) {
114114
"Silver NPE": "min",
115115
};
116116

117+
const participation = company.participation?.length > 0 && company.participation[0]; // Get the latest participation
117118
// Package name is "SINFO XX Package name" where XX is the edition year and Package name can have one or two words
118119
const packageName = (() => {
119120
const name = participation?.package?.name;

0 commit comments

Comments
 (0)