From 5a4f70d6a7f46485e6c5fdecbe919cf5b0ef3a81 Mon Sep 17 00:00:00 2001 From: Kaity A Date: Fri, 30 Dec 2022 01:18:43 +0000 Subject: [PATCH] Updated mark antenna as read error handling to use regular string --- locales/en-US.yml | 1 - packages/client/src/pages/antenna-timeline.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index adc501211..948934d81 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -738,7 +738,6 @@ jumpToSpecifiedDate: "Jump to specific date" showingPastTimeline: "Currently displaying an old timeline" clear: "Return" markAllAsRead: "Mark all as read" -failedToMarkAsRead: "Failed to mark all as read" goBack: "Back" unlikeConfirm: "Really remove your like?" fullView: "Full view" diff --git a/packages/client/src/pages/antenna-timeline.vue b/packages/client/src/pages/antenna-timeline.vue index 0b35a3f45..ad04beaac 100644 --- a/packages/client/src/pages/antenna-timeline.vue +++ b/packages/client/src/pages/antenna-timeline.vue @@ -70,7 +70,7 @@ async function doMarkRead() { return true } - throw new Error(i18n.ts.failedToMarkAsRead); + throw new Error('Failed to mark all as read'); } async function markRead() {