From 46b127baac1149c9c587cfdb3164702ada4b8579 Mon Sep 17 00:00:00 2001 From: Geert van der Cruijsen Date: Sat, 19 Oct 2019 17:27:01 +0200 Subject: [PATCH] show only current beers in transfer --- frontend/xpirit-beerxchange/src/app/services/fridge.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/xpirit-beerxchange/src/app/services/fridge.service.ts b/frontend/xpirit-beerxchange/src/app/services/fridge.service.ts index 467c1b9..54093cc 100644 --- a/frontend/xpirit-beerxchange/src/app/services/fridge.service.ts +++ b/frontend/xpirit-beerxchange/src/app/services/fridge.service.ts @@ -25,7 +25,7 @@ export class FridgeService { } getUserBeers(user: string): Observable>{ - return this.http.get>(`${AppConfig.settings.apiUrl}/beer`).map(beers => beers.filter(b => b.createdBy === user)); + return this.http.get>(`${AppConfig.settings.apiUrl}/beer`).map(beers => beers.filter(b => b.createdBy === user && b.removedBy == null)); } getHistoricalBeers(): Observable>{