Skip to content
Snippets Groups Projects
Commit 899d6a17 authored by Curtis Adam's avatar Curtis Adam
Browse files

Fix a console error related to the card settings modal

parent ca040483
Branches
Tags v.3.6
No related merge requests found
......@@ -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 {
......
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