From ca4fca9b8ba33b7e9c72e9ef0edd5424e8b1b5c5 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Sat, 9 Mar 2024 21:44:16 +0000 Subject: [PATCH] feat(repo-details): show unqiue commit not specified instead of not displaying the heading to encourage repo maintainers to include it as it improves ngit usability --- src/lib/components/repo/RepoDetails.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/repo/RepoDetails.svelte b/src/lib/components/repo/RepoDetails.svelte index 7b62d11..323b45b 100644 --- a/src/lib/components/repo/RepoDetails.svelte +++ b/src/lib/components/repo/RepoDetails.svelte @@ -156,7 +156,10 @@
- {:else if unique_commit && unique_commit.length > 0} + {:else if !unique_commit || unique_commit.length == 0} +

earliest unique commit

+

not specified

+ {:else}

earliest unique commit

{unique_commit}

{/if}