Skip to content

Commit

Permalink
fix(financial-aid): dynamic logo (#16518)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
jonnigs and kodiakhq[bot] authored Oct 23, 2024
1 parent 487d14e commit 4678927
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export const Logo = ({ application }: Props) => {

useEffect(() => {
const getLogo = async () => {
const municipalityId =
municipality && municipality?.municipalityId
? municipality.municipalityId
: ''
const svgLogo = await import(
`../../assets/svg/${
logoKeyFromMunicipalityCode[
municipality ? municipality?.municipalityId : ''
]
}`
`../../assets/svg/${logoKeyFromMunicipalityCode[municipalityId]}`
)
setLogo(svgLogo.default)
}
Expand Down

0 comments on commit 4678927

Please sign in to comment.