mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
Added check to ensure config is defined (#8180)
This commit is contained in:
parent
421bd8624c
commit
e65277baa5
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ function($rootScope, User, $http, Content) {
|
|||
|
||||
Payments.showStripeEdit = function(config) {
|
||||
var groupId;
|
||||
if (config.groupId) {
|
||||
if (config && config.groupId) {
|
||||
groupId = config.groupId;
|
||||
}
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ function($rootScope, User, $http, Content) {
|
|||
if (!confirm(window.env.t('sureCancelSub'))) return;
|
||||
|
||||
var group;
|
||||
if (config.group) {
|
||||
if (config && config.group) {
|
||||
group = config.group;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue