diff --git a/apps/desktop/src/lib/pr/StackingPullRequestCard.svelte b/apps/desktop/src/lib/pr/StackingPullRequestCard.svelte index f737c0e70a..01684587ae 100644 --- a/apps/desktop/src/lib/pr/StackingPullRequestCard.svelte +++ b/apps/desktop/src/lib/pr/StackingPullRequestCard.svelte @@ -93,7 +93,7 @@ return { style, icon, text }; } if ($checksLoading) { - return { style: 'neutral', icon: 'spinner', text: ' Checks' }; + return { style: 'neutral', icon: 'spinner', text: 'Checks' }; } return { style: 'neutral', icon: undefined, text: 'No PR checks' }; @@ -145,23 +145,25 @@ }} /> - {#if checksTagInfo && checksTagInfo.text !== 'No PR checks' && checksTagInfo.text === 'Checks'} - - { - openExternalUrl(`${$pr.htmlUrl}/checks`); - contextMenuEl?.close(); - }} - /> - { - copyToClipboard(`${$pr.htmlUrl}/checks`); - contextMenuEl?.close(); - }} - /> - + {#if checksTagInfo} + {#if checksTagInfo.text !== 'No PR checks' && checksTagInfo.text !== 'Checks'} + + { + openExternalUrl(`${$pr.htmlUrl}/checks`); + contextMenuEl?.close(); + }} + /> + { + copyToClipboard(`${$pr.htmlUrl}/checks`); + contextMenuEl?.close(); + }} + /> + + {/if} {/if}