Skip to content

Commit

Permalink
remove await
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Oct 2, 2024
1 parent b73b222 commit 966c922
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getTranslator } from './context.helper';

const getErrorMessage = async (response) => {
const responseErrorMessage = await response.json().then((jsonResponse) => {
const getErrorMessage = (response) => {
const responseErrorMessage = response.json().then((jsonResponse) => {
return jsonResponse.ErrorMessage?.errorMessage;
});

Expand Down

0 comments on commit 966c922

Please sign in to comment.