Skip to content

Commit

Permalink
Remove translations on functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rtexelm committed Jun 25, 2024
1 parent 7645688 commit e325a7d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function parseErrorJson(responseJson: JsonObject): ClientErrorObject {
}
if (typeof error.message === 'string') {
if (checkForHtml(error.message)) {
error.error = t(retrieveErrorMessage(error.message, error));
error.error = retrieveErrorMessage(error.message, error);
} else {
error.error = error.message;
}
Expand Down Expand Up @@ -246,7 +246,7 @@ export function getClientErrorObject(
resolve({
// Destructuring not necessary here
...responseObject,
error: t(retrieveErrorMessage(errorText, responseObject)),
error: retrieveErrorMessage(errorText, responseObject),
});
});
});
Expand All @@ -262,7 +262,7 @@ export function getClientErrorObject(
}
resolve({
...responseObject,
error: t(parseStringResponse(error)),
error: parseStringResponse(error),
});
});
}
Expand Down

0 comments on commit e325a7d

Please sign in to comment.