We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 979e479 commit e5b1857Copy full SHA for e5b1857
src/composable/useRepo.ts
@@ -41,7 +41,8 @@ export function useRepository(data: Ref<Repository>) {
41
const workflowBadge = computed<string | null>(() => data.value.integrations.workflowBadge ?? null);
42
const packageManager = computed<string | null>(() => data.value.integrations.packageManager ?? null);
43
const license = computed<string | null>(() => {
44
- if (!data.value.license || data.value.license.spdx_id === "NOASSERTION") return null;
+ if (!data.value.license) return null;
45
+ if (data.value.license.spdx_id === "NOASSERTION") { return data.value.license.name; }
46
return data.value.license.spdx_id;
47
});
48
0 commit comments