Commit 899d6a17 authored by Curtis Adam's avatar Curtis Adam

Fix a console error related to the card settings modal

parent ca040483
......@@ -14,7 +14,7 @@ import "./settings.html";
Template.cardSettingsModal.helpers({
getText: function () {
if (Route.isDemo() || Cardsets.findOne({_id: Router.current().params._id}).shuffled) {
if (Route.isDemo() || ((Route.isBox() || Route.isMemo()) && Cardsets.findOne({_id: Router.current().params._id}).shuffled)) {
if (Route.isDemo()) {
CardType.gotCardTypesWithSwapAnswerQuestionButton(Cardsets.findOne({name: "DemoCardset", shuffled: true})._id);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment