From 098600365af76ca8dd3f50d634acc22fec872ef2 Mon Sep 17 00:00:00 2001 From: Josua Blejeru Date: Wed, 24 May 2023 12:14:41 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20rename=20story=20type=20fe?= =?UTF-8?q?tch=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Widgets/HackernewsTrending.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Widgets/HackernewsTrending.vue b/src/components/Widgets/HackernewsTrending.vue index a61ac64c..dad694fd 100644 --- a/src/components/Widgets/HackernewsTrending.vue +++ b/src/components/Widgets/HackernewsTrending.vue @@ -32,7 +32,7 @@ export default { }; }, computed: { - storyType() { + stories() { // This can be `beststories`, `topstories` or newstories // TODO: display error message if another string not matching the keywords was insert return this.options.stories || 'topstories'; @@ -41,7 +41,7 @@ export default { return this.options.limit || 10; }, endpoint() { - return `${widgetApiEndpoints.hackernewsTrending}/${this.storyType}.json`; + return `${widgetApiEndpoints.hackernewsTrending}/${this.stories}.json`; }, }, methods: {