From ae8d5c530d72afaf17b5392bc47d9c53d53c4c41 Mon Sep 17 00:00:00 2001 From: Timothy Le Bon Date: Thu, 9 Nov 2023 16:36:52 +0100 Subject: [PATCH] chore: remove error throw --- src/script/auth/module/action/ConversationAction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/auth/module/action/ConversationAction.ts b/src/script/auth/module/action/ConversationAction.ts index 1a6b5cf1adcd..bcf8b9865dad 100644 --- a/src/script/auth/module/action/ConversationAction.ts +++ b/src/script/auth/module/action/ConversationAction.ts @@ -46,7 +46,7 @@ export class ConversationAction { code: string, uri?: string, password?: string, - ): ThunkAction> => { + ): ThunkAction> => { return async (dispatch, getState, {apiClient}) => { dispatch(ConversationActionCreator.startJoinConversationByCode()); try { @@ -66,7 +66,7 @@ export class ConversationAction { has_password: true, } as ConversationJoinData), ); - throw error; + return undefined; } dispatch(ConversationActionCreator.failedJoinConversationByCode(error)); throw error;