mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +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 listener = useCallback((location) => {
|
||||||
const newState = [...recentlyUsed];
|
const newState = [...recentlyUsed];
|
||||||
allApps.forEach((app) => {
|
allApps.forEach((app) => {
|
||||||
if (matchPath(location.pathname, { path: app.path, exact: false })) {
|
if (matchPath(location.pathname, { path: app.path, exact: true })) {
|
||||||
unshiftApp(newState, app);
|
unshiftApp(newState, app);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user