From 348106f20cb0be6406b5b71bc0325b981ed74be9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Sep 2018 09:30:13 +0200 Subject: Don't get quota twice --- .../+video-edit/video-add-components/video-upload.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app') 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 () { -- cgit v1.2.3