Skip to content

Commit 7c02666

Browse files
committed
feat: remove redundant null return type from useFindSession
1 parent 895197b commit 7c02666

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
@@ -1,7 +1,7 @@
11
import type { Session } from '@opendatacapture/schemas/session';
22
import axios from 'axios';
33

4-
export const sessionInfo = async (sessionId: string): Promise<null | Session> => {
4+
export const sessionInfo = async (sessionId: string): Promise<Session> => {
55
try {
66
const response = await axios.get(`/v1/sessions/${sessionId}`);
77
if (!response.data) {

0 commit comments

Comments
 (0)