Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
if (this.patron.waiver_entries().length === 0) {
this.addWaiver();
}
+
+ if (!this.patron.card()) {
+ this.replaceBarcode();
+ }
}
createNewPatron() {
replaceBarcode() {
// Disable current card
- this.patron.card().active('f');
- this.patron.card().ischanged(true);
+ if (this.patron.card()) {
+ this.patron.card().active('f');
+ this.patron.card().ischanged(true);
+ }
const card = this.idl.create('ac');
card.isnew(true);