Skip to content

Commit 6205734

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/composable/useRepo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +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;
45-
return data.value.license.spdx_id;
44+
if (!data.value.license) return null;
45+
return data.value.license.spdx_id ?? data.value.license.name;
4646
});
4747

4848
const hasBadges = computed<boolean>(() => {

0 commit comments

Comments
 (0)