diff --git a/client/src/app/screens/screen-profile/screen-profile.html b/client/src/app/screens/screen-profile/screen-profile.html
index 71197f5..7f26032 100644
--- a/client/src/app/screens/screen-profile/screen-profile.html
+++ b/client/src/app/screens/screen-profile/screen-profile.html
@@ -6,7 +6,7 @@
{{ username }}
- {{ email }}
+ {{ userID }}
@@ -27,14 +27,24 @@
+ @if (transaction.receiverID == userID) {
{{ transaction.senderID }}
+ }@else {
+ {{ transaction.receiverID }}
+ }
{{ transaction.date | date:'medium' }}
-
0" [class.text-danger]="transaction.amount < 0">
- {{ transaction.amount | currency }}
-
+ @if (transaction.receiverID == userID) {
+
+ {{ transaction.amount | currency }}
+
+ }@else {
+
+ {{ - transaction.amount | currency }}
+
+ }
diff --git a/client/src/app/screens/screen-profile/screen-profile.ts b/client/src/app/screens/screen-profile/screen-profile.ts
index 07b5bff..0c51175 100644
--- a/client/src/app/screens/screen-profile/screen-profile.ts
+++ b/client/src/app/screens/screen-profile/screen-profile.ts
@@ -11,7 +11,7 @@ import Transaction from '@model/transaction';
})
export class ScreenProfile implements OnInit{
username = 'John Doe';
- email = 'john.doe@example.com';
+ userID = 'testuser';
transactions!: Transaction[];
constructor(private api: APIService){}