Skip to content

Commit

Permalink
script: add check on event before accessing
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchang committed Apr 11, 2018
1 parent f60b99d commit ce1ccc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2072,8 +2072,10 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo

scope.openSupportDeveloperModal = function(e) {
closeAllOverlays();
trackEvent('ui', e.target.dataset.eventAction);
scope.toggleModal(pledgeModal);
if (e) {
trackEvent('ui', e.target.dataset.eventAction);
}
};

scope.updateProfileUi = () => {
Expand Down

0 comments on commit ce1ccc3

Please sign in to comment.