Skip to content

Commit

Permalink
remove await
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Oct 8, 2024
1 parent b941ef5 commit 076621a
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 076621a

Please sign in to comment.