aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.js
diff options
context:
space:
mode:
authorjasper <jasper92341@hotmail.com>2019-02-19 09:42:53 -0800
committerjasper <jasper92341@hotmail.com>2019-02-19 09:42:53 -0800
commit1e43a47c3c922c4b68e0a84b74cafe6a2ea23bf1 (patch)
tree4ac29e0855d1753ca4c49a16d8ca4d26ab55da93 /src/components/timeline/timeline.js
parentb4709515f22446b032c664e0960419ebea119098 (diff)
Update: Fix fetch error when login
Diffstat (limited to 'src/components/timeline/timeline.js')
-rw-r--r--src/components/timeline/timeline.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index 3fc927f9..ee4ec10b 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -53,16 +53,16 @@ const Timeline = {
window.addEventListener('scroll', this.scrollLoad)
- if (typeof credentials !== 'undefined' || this.timelineName !== 'friends') {
- timelineFetcher.fetchAndUpdate({
- store,
- credentials,
- timeline: this.timelineName,
- showImmediately,
- userId: this.userId,
- tag: this.tag
- })
- }
+ if (this.timelineName === 'friends' && !credentials) { return false }
+
+ timelineFetcher.fetchAndUpdate({
+ store,
+ credentials,
+ timeline: this.timelineName,
+ showImmediately,
+ userId: this.userId,
+ tag: this.tag
+ })
},
mounted () {
if (typeof document.hidden !== 'undefined') {