chore: changes for 1.1.4

This commit is contained in:
Andrei O 2023-10-13 16:22:56 +03:00
parent 047a87fde1
commit b29265afe9
No known key found for this signature in database
GPG Key ID: B961E5B68389457E
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,9 @@
# Change Log # Change Log
## [Version 1.1.4]
- minor fix edge case of no notifications
## [Version 1.1.3] ## [Version 1.1.3]
- minor fix to prevent console error log on fetch failure - minor fix to prevent console error log on fetch failure

View File

@ -1,7 +1,7 @@
{ {
"name": "yup live", "name": "yup live",
"description": "Light extension helper for yup social platform.", "description": "Light extension helper for yup social platform.",
"version": "1.1.3", "version": "1.1.4",
"manifest_version": 3, "manifest_version": 3,
"icons": { "icons": {
"16": "src/assets/icons/yup_ext_16.png", "16": "src/assets/icons/yup_ext_16.png",

View File

@ -57,11 +57,11 @@ const changeNotifsType = async (t : string[] | null) => {
   
{:then pastNotifs} {:then pastNotifs}
{#if (pastNotifs.notifs ?? []).length > 0} {#if (pastNotifs.notifs ?? []).length > 0}
{noNotifications = true} {#each pastNotifs.notifs as notif}
{:else}
{#each pastNotifs.notifs as notif}
<Notification {notif} /> <Notification {notif} />
{/each} {/each}
{:else}
{(noNotifications = true) && ''}
{/if} {/if}
{/await} {/await}
{:else} {:else}
@ -76,9 +76,11 @@ const changeNotifsType = async (t : string[] | null) => {
</div> </div>
{/if} {/if}
{#key noNotifications}
{#if noNotifications } {#if noNotifications }
<div class="flex flex-col items-center justify-center h-full"> <div class="flex flex-col items-center justify-center h-full">
<p class="text-2xl font-semibold">No Notifications</p> <p class="text-2xl font-semibold">No Notifications</p>
<p class="text-lg">You have no notifications</p> <p class="text-lg">You have no notifications</p>
</div> </div>
{/if} {/if}
{/key}