Ensure fallback is alway selected when no route matches.

This commit is contained in:
pngwn 2020-02-18 16:38:35 +00:00
parent 063cb0f41f
commit f42cfd9fa2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export const screenRouter = (screens, onScreenSelected) => {
if (current !== -1) { if (current !== -1) {
onScreenSelected(screens[current], store, _url) onScreenSelected(screens[current], store, _url)
} else if (fallback) { } else {
onScreenSelected(screens[fallback], store, _url) onScreenSelected(screens[fallback], store, _url)
} }