fix space lobby / search selected hook not working (#2675)
This commit is contained in:
parent
170f5cd473
commit
9ff15b8b03
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ export const useSelectedSpace = (): string | undefined => {
|
|||
|
||||
export const useSpaceLobbySelected = (spaceIdOrAlias: string): boolean => {
|
||||
const match = useMatch({
|
||||
path: getSpaceLobbyPath(spaceIdOrAlias),
|
||||
path: decodeURIComponent(getSpaceLobbyPath(spaceIdOrAlias)),
|
||||
caseSensitive: true,
|
||||
end: false,
|
||||
});
|
||||
|
|
@ -28,7 +28,7 @@ export const useSpaceLobbySelected = (spaceIdOrAlias: string): boolean => {
|
|||
|
||||
export const useSpaceSearchSelected = (spaceIdOrAlias: string): boolean => {
|
||||
const match = useMatch({
|
||||
path: getSpaceSearchPath(spaceIdOrAlias),
|
||||
path: decodeURIComponent(getSpaceSearchPath(spaceIdOrAlias)),
|
||||
caseSensitive: true,
|
||||
end: false,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue