Skip to content

Commit

Permalink
test: replace stateformat to default
Browse files Browse the repository at this point in the history
  • Loading branch information
teresalazarini committed Apr 24, 2024
1 parent da68f68 commit 951d62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/atlas-theme/services/getAdress.js
Original file line number Diff line number Diff line change
@@ -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())
Expand Down

0 comments on commit 951d62d

Please sign in to comment.