Skip to content

Commit

Permalink
fix(chat): fix error matching in accept invite
Browse files Browse the repository at this point in the history
  • Loading branch information
Magomed-Elbi Dzhukalaev committed Aug 7, 2024
1 parent ebc09ea commit 447b179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/chat/src/store/share/share.epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const acceptInvitationEpic: AppEpic = (action$) =>
catchError((err) => {
console.error(err);
let message = errorsMessages.acceptShareFailed;
if (err.message === '404') {
if (err.message.trim().toLowerCase() === 'bad request') {
message = errorsMessages.acceptShareNotExists;
}
return of(ShareActions.acceptShareInvitationFail({ message }));
Expand Down

0 comments on commit 447b179

Please sign in to comment.