forked from github/cinny
fix space lobby / search selected hook not working (#2675)
This commit is contained in:
@@ -18,7 +18,7 @@ export const useSelectedSpace = (): string | undefined => {
|
|||||||
|
|
||||||
export const useSpaceLobbySelected = (spaceIdOrAlias: string): boolean => {
|
export const useSpaceLobbySelected = (spaceIdOrAlias: string): boolean => {
|
||||||
const match = useMatch({
|
const match = useMatch({
|
||||||
path: getSpaceLobbyPath(spaceIdOrAlias),
|
path: decodeURIComponent(getSpaceLobbyPath(spaceIdOrAlias)),
|
||||||
caseSensitive: true,
|
caseSensitive: true,
|
||||||
end: false,
|
end: false,
|
||||||
});
|
});
|
||||||
@@ -28,7 +28,7 @@ export const useSpaceLobbySelected = (spaceIdOrAlias: string): boolean => {
|
|||||||
|
|
||||||
export const useSpaceSearchSelected = (spaceIdOrAlias: string): boolean => {
|
export const useSpaceSearchSelected = (spaceIdOrAlias: string): boolean => {
|
||||||
const match = useMatch({
|
const match = useMatch({
|
||||||
path: getSpaceSearchPath(spaceIdOrAlias),
|
path: decodeURIComponent(getSpaceSearchPath(spaceIdOrAlias)),
|
||||||
caseSensitive: true,
|
caseSensitive: true,
|
||||||
end: false,
|
end: false,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user