From 9420b883d332b68d10f1ce551eb085705c801f41 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Fri, 14 Sep 2018 20:45:30 +0200 Subject: [PATCH] fix(nav): matches() function --- core/src/components/nav/view-controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/components/nav/view-controller.ts b/core/src/components/nav/view-controller.ts index 958c72c3c2..7cbabea375 100644 --- a/core/src/components/nav/view-controller.ts +++ b/core/src/components/nav/view-controller.ts @@ -60,12 +60,12 @@ export function matches(view: ViewController | undefined, id: string, params: Co return false; } const currentParams = view.params; - if (!currentParams && !params) { - return false; - } if (currentParams === params) { return true; } + if (!currentParams && !params) { + return true; + } if (!currentParams || !params) { return false; }