tweak(os/useQuickAccess): use exact as true

This commit is contained in:
Christopher committed 2021-02-08 19:00:26 +01:00
1 parent a27de26ef0
commit 77bca6b299
1 file changed
+1 -1
@@ -35,7 +35,7 @@ export const useQuickAccess = () => {
const listener = useCallback((location) => {
const newState = [...recentlyUsed];
allApps.forEach((app) => {
if (matchPath(location.pathname, { path: app.path, exact: false })) {
if (matchPath(location.pathname, { path: app.path, exact: true })) {
unshiftApp(newState, app);
}
});