Merge branch 'enad-Q1' of https://gitlab.com/haroon6138/mohemmionic5 into enad-Q1

enad-Q1
enadhilal 4 years ago
commit 36fd0c1e77

@ -188,7 +188,13 @@ export class AttendScanService {
try {
let currentFirebaseDocument = this.common.sharedService.getSharedData('firebase-document');
let currentSwipeArray = currentFirebaseDocument.document.swipeData;
currentSwipeArray.push(resultObject);
if (currentSwipeArray) {
currentSwipeArray.push(resultObject);
} else {
let swipeData = [];
swipeData.push(resultObject);
currentSwipeArray = swipeData;
}
const updatedDocument = {
swipeData: currentSwipeArray
};

Loading…
Cancel
Save