diff --git a/packages/@ama-sdk/core/src/fwk/api.helpers.ts b/packages/@ama-sdk/core/src/fwk/api.helpers.ts index 9b45f9276f..1405de7ca5 100644 --- a/packages/@ama-sdk/core/src/fwk/api.helpers.ts +++ b/packages/@ama-sdk/core/src/fwk/api.helpers.ts @@ -133,7 +133,7 @@ export function getResponseReviver(revivers: { [statusCode: number]: ReviverT if (typeof revivers === 'function' || typeof revivers === 'undefined') { return revivers; } - if (response.status && revivers[response.status]) { + if (response.status && Object.keys(revivers).indexOf(`${response.status}`) > -1) { return revivers[response.status]; } if (options?.disableFallback) {