diff --git a/helpers/strategies/AxiosStrategy.js b/helpers/strategies/AxiosStrategy.js index 76180b72b..c170fc734 100644 --- a/helpers/strategies/AxiosStrategy.js +++ b/helpers/strategies/AxiosStrategy.js @@ -23,7 +23,7 @@ const axiosWithProxy = async (req, { state }) => { } ) - if (!data.data.success) { + if (!data.success) { throw new Error(data.data.message || "Proxy Error") } diff --git a/helpers/strategies/ExtensionStrategy.js b/helpers/strategies/ExtensionStrategy.js index b96737e28..041776ecd 100644 --- a/helpers/strategies/ExtensionStrategy.js +++ b/helpers/strategies/ExtensionStrategy.js @@ -27,7 +27,7 @@ const extensionWithProxy = async (req, { state }) => { const parsedData = JSON.parse(data) - if (!parsedData.data.success) { + if (!parsedData.success) { throw new Error(parsedData.data.message || "Proxy Error") }