From 9e21b971e6bbfd71c7b9cb7ec3e761b42ed82408 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 11 Feb 2020 10:17:24 +0100 Subject: [PATCH] MOBILE-3284 tabs: Fix tslint error in isInTransition --- src/components/tabs/tabs.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/tabs/tabs.ts b/src/components/tabs/tabs.ts index 9565a935d..4f0145056 100644 --- a/src/components/tabs/tabs.ts +++ b/src/components/tabs/tabs.ts @@ -414,8 +414,9 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe slideNext(): void { if (this.showNextButton) { // Stop if slides are in transition. - if (this.isInTransition) + if (this.isInTransition) { return; + } if (this.slides.isBeginning()) { // Slide to the second page. @@ -444,8 +445,9 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe slidePrev(): void { if (this.showPrevButton) { // Stop if slides are in transition. - if (this.isInTransition) + if (this.isInTransition) { return; + } if (this.slides.isEnd()) { this.slides.slideTo(this.numTabsShown - this.maxSlides * 2);