Skip to content

Commit

Permalink
Update App.vue
Browse files Browse the repository at this point in the history
Converted IA Survey ID from session storage to a number so that empty => 0 => false and "0" => 0 => false. This will allow us to disable the survey from 1Password by assigning an id of 0. (We can also deactivate it from Hotjar.)
  • Loading branch information
severinbeauvais authored Jan 24, 2023
1 parent 5e931c7 commit 0c24786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ export default class App extends Vue {
// - if the IA Survey ID is configured
// - if the cookie doesn't exist (eg, never set, or expired)
if (this.isIncorporationFiling) {
if (sessionStorage.getItem('IA_SURVEY_ID')) {
if (+sessionStorage.getItem('IA_SURVEY_ID')) {
const cookie = Cookies.get(this.IA_SURVEY_KEY, { domain: this.domain })
if (!cookie) {
this.filingSurveyDialog = true
Expand Down

0 comments on commit 0c24786

Please sign in to comment.