Skip to content

Commit

Permalink
fix apstate ref
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasnteireho committed Dec 6, 2023
1 parent 11affc8 commit 5d70ace
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mobile/pages/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ export default Component.extend({
},

'a.learn-more click': function fireLearnMoreModal () {
const vm = this.viewModel
const pages = this.viewModel.interview.pages
const pageName = this.viewModel.currentPage.name
// this.appState.page
// vm.appState.page

if (pages && pageName) {
const page = pages.find(pageName)
Expand All @@ -98,7 +99,7 @@ export default Component.extend({
analytics.trackCustomEvent('Learn-More', 'from: ' + pageName, page.learn)
}

this.appState.modalContent = {
vm.appState.modalContent = {
// name undefined prevents stache warnings
title: page.learn,
text: page.help,
Expand Down

0 comments on commit 5d70ace

Please sign in to comment.