fix(nav): matches() function

This commit is contained in:
Manu Mtz.-Almeida
2018-09-14 20:45:30 +02:00
parent 78e2a0aea1
commit 9420b883d3

View File

@@ -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;
}