review fixes

This commit is contained in:
Sara
2024-01-09 15:41:16 +01:00
parent 673f5d7cbd
commit b70ff46c72
3 changed files with 52 additions and 33 deletions

View File

@@ -13,7 +13,7 @@ type ErrorParticipants = {
type LoadingParticipants = {
response: Participant[] | null;
loading: true;
error: false;
error: null;
};
type SuccessParticipants = {
@@ -63,6 +63,8 @@ const useParticipants = (transcriptId: string): UseParticipants => {
setError(error);
}
setErrorState(error);
setResponse(null);
setLoading(false);
});
}, [transcriptId, !api, count]);