chore(eslint): add strict-boolean-expressions rule (#25768)

This commit is contained in:
Amanda Johnston
2022-08-23 11:50:02 -05:00
committed by GitHub
parent d75386baef
commit ae6aa0cb8e
38 changed files with 101 additions and 82 deletions

View File

@ -287,12 +287,12 @@ export const iosTransitionAnimation = (navEl: HTMLElement, opts: TransitionOptio
rootAnimation
.addElement(enteringEl)
.duration(opts.duration || DURATION)
.duration((opts.duration ?? 0) || DURATION)
.easing(opts.easing || EASING)
.fill('both')
.beforeRemoveClass('ion-page-invisible');
if (leavingEl && navEl) {
if (leavingEl && navEl !== null && navEl !== undefined) {
const navDecorAnimation = createAnimation();
navDecorAnimation.addElement(navEl);
rootAnimation.addAnimation(navDecorAnimation);