To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 74e10e20 authored by Sandro Lutz's avatar Sandro Lutz Committed by Sandro Lutz
Browse files

Fix issues with RfidForm

parent 28a6489b
......@@ -15,7 +15,7 @@ export default class RfidForm {
}
submit() {
const savedRfid = this.rfid || null;
const savedRfid = this.rfid && this.rfid.length > 0 ? this.rfid : null;
this.busy = true;
this.userController
.update({ rfid: savedRfid })
......@@ -35,7 +35,7 @@ export default class RfidForm {
const buttonArgs = { events: { onclick: () => this.submit() } };
const { user } = this.userController;
if (user.rfid === undefined) {
if (user === undefined) {
return m('');
}
......
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