Skip to content

Commit

Permalink
chore: remove error throw
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Nov 9, 2023
1 parent c02ea4b commit ae8d5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script/auth/module/action/ConversationAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class ConversationAction {
code: string,
uri?: string,
password?: string,
): ThunkAction<Promise<ConversationEvent>> => {
): ThunkAction<Promise<ConversationEvent | undefined>> => {
return async (dispatch, getState, {apiClient}) => {
dispatch(ConversationActionCreator.startJoinConversationByCode());
try {
Expand All @@ -66,7 +66,7 @@ export class ConversationAction {
has_password: true,
} as ConversationJoinData),
);
throw error;
return undefined;
}
dispatch(ConversationActionCreator.failedJoinConversationByCode(error));
throw error;
Expand Down

0 comments on commit ae8d5c5

Please sign in to comment.