mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Update error message
This commit is contained in:
@@ -26,7 +26,7 @@ type SuccessMeeting = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const useRoomMeeting = (
|
const useRoomMeeting = (
|
||||||
roomName: string | null | undefined,
|
roomName: string | null | undefined
|
||||||
): ErrorMeeting | LoadingMeeting | SuccessMeeting => {
|
): ErrorMeeting | LoadingMeeting | SuccessMeeting => {
|
||||||
const [response, setResponse] = useState<Meeting | null>(null);
|
const [response, setResponse] = useState<Meeting | null>(null);
|
||||||
const [loading, setLoading] = useState<boolean>(true);
|
const [loading, setLoading] = useState<boolean>(true);
|
||||||
@@ -53,7 +53,10 @@ const useRoomMeeting = (
|
|||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const shouldShowHuman = shouldShowError(error);
|
const shouldShowHuman = shouldShowError(error);
|
||||||
if (shouldShowHuman) {
|
if (shouldShowHuman) {
|
||||||
setError(error, "There was an error loading the meeting");
|
setError(
|
||||||
|
error,
|
||||||
|
"There was an error loading the meeting. Please try again by refreshing the page."
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
setError(error);
|
setError(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user