Skip to content

Commit

Permalink
fix: el mensaje de error de servidor sacamos dell scope interno
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirezsebas committed Feb 3, 2024
1 parent f63ec91 commit ebc9fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contribuyentes.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ async function getContribuyenteByRucOrCI(ruc) {

const contribuyenteJsonResponse = await response.json();

if (response.status !== 200) {
const serverErrorMessages = contribuyenteJsonResponse?.message;
const serverErrorMessages = contribuyenteJsonResponse?.message;

if (response.status !== 200) {
if (response.status >= 400 && response.status < 500) {
if (response.status === 404) {
throw new ServerError(
Expand Down

0 comments on commit ebc9fa6

Please sign in to comment.