Skip to content

Commit 25903b0

Browse files
committed
chore: and encodeUriComponent to ids
1 parent 7c02666 commit 25903b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/hooks/useFindSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import axios from 'axios';
33

44
export const sessionInfo = async (sessionId: string): Promise<Session> => {
55
try {
6-
const response = await axios.get(`/v1/sessions/${sessionId}`);
6+
const response = await axios.get(`/v1/sessions/${encodeURIComponent(sessionId)}`);
77
if (!response.data) {
88
throw new Error('Session data does not exist');
99
}

0 commit comments

Comments
 (0)