diff options
| author | Wyatt Benno <wyattbenno@gmail.com> | 2019-12-09 09:02:34 +0900 |
|---|---|---|
| committer | Wyatt Benno <wyattbenno@gmail.com> | 2019-12-09 09:02:34 +0900 |
| commit | e86af0c965d459d016d638c0822bc9af6a6c0ee1 (patch) | |
| tree | 6a1f446d7bf2305bf4b3837041f6f4254fcc1910 /src/services/timeline_fetcher/timeline_fetcher.service.js | |
| parent | 01855f315c7db813d7bbf2f3683017819d2fb70c (diff) | |
Change naming, make more general
Diffstat (limited to 'src/services/timeline_fetcher/timeline_fetcher.service.js')
| -rw-r--r-- | src/services/timeline_fetcher/timeline_fetcher.service.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js index b7952050..1aaae563 100644 --- a/src/services/timeline_fetcher/timeline_fetcher.service.js +++ b/src/services/timeline_fetcher/timeline_fetcher.service.js @@ -6,7 +6,7 @@ const update = ({ store, statuses, timeline, showImmediately, userId }) => { const ccTimeline = camelCase(timeline) store.dispatch('setError', { value: false }) - store.dispatch('set403Error', { value: false }) + store.dispatch('setErrorData', { value: false }) store.dispatch('addNewStatuses', { timeline: ccTimeline, @@ -46,9 +46,9 @@ const fetchAndUpdate = ({ return apiService.fetchTimeline(args) .then((statuses) => { - // Change messaging if not public if (statuses.error) { - store.dispatch('set403Error', { value: statuses.error }) + console.log(statuses) + store.dispatch('setErrorData', { value: statuses.error }) return } if (!older && statuses.length >= 20 && !timelineData.loading && numStatusesBeforeFetch > 0) { |
