#3040 Remission - Fehler bei nicht gefunden stehen

This commit is contained in:
Lorenz Hilpert
2022-06-21 15:11:07 +02:00
parent 0a25eeadbe
commit 42028a2777

View File

@@ -200,8 +200,10 @@ export class RemissionListItemComponent implements OnDestroy {
else if (this.item.dtoType === 'suggestion') {
updatedDto = await this._remissionService.returnSuggestion(this.item.dto?.id).toPromise();
}
if (updatedDto.impediment?.attempts > 3) {
debugger;
if (updatedDto.impediment?.attempts === 1 && updatedDto.returnReason.startsWith('Abholfach:')) {
this._store.removeItem(this.item);
} else if (updatedDto.impediment?.attempts > 3) {
this._store.removeItem(this.item);
} else {
this._store.updateItemDto(updatedDto);