From eede4448329fb0fc407d6e04ac81cdfb78e1a477 Mon Sep 17 00:00:00 2001 From: Mark Vayngrib Date: Wed, 14 Feb 2018 15:15:28 -0500 Subject: [PATCH] fix: don't crash on undefined level --- AppIntro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppIntro.js b/AppIntro.js index 52b42d9..aeaf268 100644 --- a/AppIntro.js +++ b/AppIntro.js @@ -157,7 +157,7 @@ export default class AppIntro extends Component { { toValue: value }, ).start(); } - getTransform = (index, offset, level) => { + getTransform = (index, offset, level=0) => { const isFirstPage = index === 0; const statRange = isFirstPage ? 0 : windowsWidth * (index - 1); const endRange = isFirstPage ? windowsWidth : windowsWidth * index;