From 41b3e69acb9195cc106dd018af5fc969ea2d48c0 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 8 Apr 2021 21:50:50 +0200
Subject: [PATCH] Add temporary patch for preset challenges

---
 client/src/views/Hall.vue | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue
index 6d675a15..1bd5987c 100644
--- a/client/src/views/Hall.vue
+++ b/client/src/views/Hall.vue
@@ -300,6 +300,10 @@ export default {
     }
   },
   created: function() {
+    // TODO: remove this patch soon:
+    this.presetChalls.forEach(pc => {
+      if (!pc.options) pc.options = { randomness: pc.randomness };
+    });
     document.addEventListener('visibilitychange', this.visibilityChange);
     window.addEventListener('focus', this.onFocus);
     window.addEventListener('blur', this.onBlur);
-- 
2.44.0