diff --git a/src/v0/util/facebookUtils/networkHandler.js b/src/v0/util/facebookUtils/networkHandler.js index 038aa142a2..7219120dd7 100644 --- a/src/v0/util/facebookUtils/networkHandler.js +++ b/src/v0/util/facebookUtils/networkHandler.js @@ -247,9 +247,7 @@ const getStatus = (error) => { errorMessage = get(error, errorDetail?.messageDetails?.field); } - const stats = errorDetail?.stat; - - return { status: errorStatus, errorMessage, stats }; + return { status: errorStatus, errorMessage, stats: errorDetail?.stat }; }; const errorResponseHandler = (destResponse) => {