Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
#674 jest unexpected token
Browse files Browse the repository at this point in the history
  • Loading branch information
gchi25 committed Apr 21, 2023
1 parent a49df69 commit d34e95c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/BetaUsaGovHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,12 @@ export default {
methods: {
sanitizedHeadingUrl(benefitUrl, defaultValue = "#") {
if (benefitUrl && benefitUrl.length > 0) {
return this.sanitizeUrl(benefitUrl)
} else {
return defaultValue
if (benefitUrl) {
if (benefitUrl.length > 0) {
return this.sanitizeUrl(benefitUrl)
}
}
return defaultValue
},
skipLink() {
const skipLink = document.getElementById("main-content")
Expand Down

0 comments on commit d34e95c

Please sign in to comment.