mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
tweak(os/useQuickAccess): use exact as true
This commit is contained in:
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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user