From 348106f20cb0be6406b5b71bc0325b981ed74be9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Sep 2018 09:30:13 +0200 Subject: [PATCH] Don't get quota twice --- .../video-add-components/video-upload.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts index c9ab35b1d..b59fb7335 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts @@ -68,10 +68,10 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy super.ngOnInit() this.userService.getMyVideoQuotaUsed() - .subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed) - - this.userService.getMyVideoQuotaUsed() - .subscribe(data => this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily) + .subscribe(data => { + this.userVideoQuotaUsed = data.videoQuotaUsed + this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily + }) } ngOnDestroy () {