Skip to content

Commit

Permalink
Merge pull request #184 from IQ-tech/feat/add-city-widget
Browse files Browse the repository at this point in the history
test: replace stateformat to default
  • Loading branch information
Qnedy authored Apr 24, 2024
2 parents 4bf3c0c + 951d62d commit 6c02dec
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 6c02dec

Please sign in to comment.