diff --git a/ui/src/components/misccomponents/SendAlertModal.svelte b/ui/src/components/misccomponents/SendAlertModal.svelte index 1b185447..21ad1f09 100644 --- a/ui/src/components/misccomponents/SendAlertModal.svelte +++ b/ui/src/components/misccomponents/SendAlertModal.svelte @@ -123,22 +123,24 @@
Invalid email input
{/if} -
- Currently receiving alerts: -
- {#each sharedEmailAddresses as item} -
  • {item = { ...item, showDeleteIcon: true } }} - on:focus={() => {item = { ...item, showDeleteIcon: true } }} - on:mouseleave={()=> {item = { ...item, showDeleteIcon: false } }} - > - {item.emailAddress} - {#if item.showDeleteIcon} - removeAlertEmail(item)} on:keydown={undefined}/> - {/if} -
  • - {/each} + {#if sharedEmailAddresses.length > 0} +
    + Currently receiving alerts: +
    + {#each sharedEmailAddresses as item} +
  • {item = { ...item, showDeleteIcon: true } }} + on:focus={() => {item = { ...item, showDeleteIcon: true } }} + on:mouseleave={()=> {item = { ...item, showDeleteIcon: false } }} + > + {item.emailAddress} + {#if item.showDeleteIcon} + removeAlertEmail(item)} on:keydown={undefined}/> + {/if} +
  • + {/each} + {/if} {/if}