diff --git a/src/app/dashboard/pages/point-vente/point-vente.ts b/src/app/dashboard/pages/point-vente/point-vente.ts
index a974af5..4adb73b 100644
--- a/src/app/dashboard/pages/point-vente/point-vente.ts
+++ b/src/app/dashboard/pages/point-vente/point-vente.ts
@@ -110,7 +110,7 @@ export class PointVentePage {
renderStatutBadge(statut: PointVenteStatut | string | undefined): string {
if (!statut) return '';
const s = String(statut).toUpperCase();
- if (s === 'ACTIVE') {
+ if (s === 'ACTIF') {
return ` Actif`;
}
return ` Inactif`;
diff --git a/src/app/dashboard/pages/tpe-select/tpe-select.ts b/src/app/dashboard/pages/tpe-select/tpe-select.ts
index 500bf28..59d216f 100644
--- a/src/app/dashboard/pages/tpe-select/tpe-select.ts
+++ b/src/app/dashboard/pages/tpe-select/tpe-select.ts
@@ -74,10 +74,10 @@ export class TpeSelect {
this.tpeService.list(params).subscribe({
next: (res) => {
// Filtrer : TPE non assignés ou déjà assignés à cet agent
- // console.log(res.content);
+ //console.log(res.content);
const available = res.content.filter(
(t) =>
- !t.assigned || t.agentConnecteId === this.agent?.id
+ (t.assigned && this.selectedIds().has(String(t.id))) || !t.assigned
);
this.tpes.set(available);
this.total.set(res.pageable.total);
diff --git a/src/environments/environment.development.ts b/src/environments/environment.development.ts
index 0a134e1..f6d87ec 100644
--- a/src/environments/environment.development.ts
+++ b/src/environments/environment.development.ts
@@ -1,5 +1,5 @@
export const environment = {
production: false,
- apiBaseUrl: 'http://192.168.40.212:8080',
+ apiBaseUrl: 'http://192.168.1.235:8381',
depouillementBaseUrl: 'http://192.168.1.235:8383'
};