From b29265afe9161266875115ee0c89222b0119d922 Mon Sep 17 00:00:00 2001 From: Andrei O Date: Fri, 13 Oct 2023 16:22:56 +0300 Subject: [PATCH] chore: changes for `1.1.4` --- CHANGELOG.MD | 4 ++++ manifest.json | 2 +- src/pages/Notifications.svelte | 8 +++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 9bab74a..de70ccf 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,9 @@ # Change Log +## [Version 1.1.4] + +- minor fix edge case of no notifications + ## [Version 1.1.3] - minor fix to prevent console error log on fetch failure diff --git a/manifest.json b/manifest.json index bfcfd8d..a2f53ae 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "yup live", "description": "Light extension helper for yup social platform.", - "version": "1.1.3", + "version": "1.1.4", "manifest_version": 3, "icons": { "16": "src/assets/icons/yup_ext_16.png", diff --git a/src/pages/Notifications.svelte b/src/pages/Notifications.svelte index e5316a5..268263f 100644 --- a/src/pages/Notifications.svelte +++ b/src/pages/Notifications.svelte @@ -57,11 +57,11 @@ const changeNotifsType = async (t : string[] | null) => {   {:then pastNotifs} {#if (pastNotifs.notifs ?? []).length > 0} - {noNotifications = true} - {:else} - {#each pastNotifs.notifs as notif} + {#each pastNotifs.notifs as notif} {/each} + {:else} + {(noNotifications = true) && ''} {/if} {/await} {:else} @@ -76,9 +76,11 @@ const changeNotifsType = async (t : string[] | null) => { {/if} +{#key noNotifications} {#if noNotifications }

No Notifications

You have no notifications

{/if} +{/key}