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