From 951d62dff1d2ad2c1ec15c282a864ab2043c69d3 Mon Sep 17 00:00:00 2001 From: Teresa Lazarini Date: Wed, 24 Apr 2024 15:27:16 -0300 Subject: [PATCH] test: replace stateformat to default --- packages/atlas-theme/services/getAdress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/atlas-theme/services/getAdress.js b/packages/atlas-theme/services/getAdress.js index 0fcf7a9e..3eef32fe 100644 --- a/packages/atlas-theme/services/getAdress.js +++ b/packages/atlas-theme/services/getAdress.js @@ -1,7 +1,7 @@ import STATE_FORMATS from "../constants/state-formats" export default async function getAddress(cep, stateFormat) { - const safeStateFormat = stateFormat || "br" + const safeStateFormat = stateFormat || "default" const cleanCEP = cep.split("-").join("") const apiRoute = `https://viacep.com.br/ws/${cleanCEP}/json/` const data = await fetch(apiRoute).then((data) => data.json())