Skip to content

Commit e5b1857

Browse files
committed
fix(repo): handle Other license
1 parent 979e479 commit e5b1857

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/composable/useRepo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export function useRepository(data: Ref<Repository>) {
4141
const workflowBadge = computed<string | null>(() => data.value.integrations.workflowBadge ?? null);
4242
const packageManager = computed<string | null>(() => data.value.integrations.packageManager ?? null);
4343
const license = computed<string | null>(() => {
44-
if (!data.value.license || data.value.license.spdx_id === "NOASSERTION") return null;
44+
if (!data.value.license) return null;
45+
if (data.value.license.spdx_id === "NOASSERTION") { return data.value.license.name; }
4546
return data.value.license.spdx_id;
4647
});
4748

0 commit comments

Comments
 (0)