We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 895197b commit 7c02666Copy full SHA for 7c02666
1 file changed
apps/web/src/hooks/useFindSession.ts
@@ -1,7 +1,7 @@
1
import type { Session } from '@opendatacapture/schemas/session';
2
import axios from 'axios';
3
4
-export const sessionInfo = async (sessionId: string): Promise<null | Session> => {
+export const sessionInfo = async (sessionId: string): Promise<Session> => {
5
try {
6
const response = await axios.get(`/v1/sessions/${sessionId}`);
7
if (!response.data) {
0 commit comments