aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Angular
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Angular')
-rw-r--r--src/DevHive.Angular/src/app/components/feed/feed.component.html2
-rw-r--r--src/DevHive.Angular/src/app/services/user.service.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/DevHive.Angular/src/app/components/feed/feed.component.html b/src/DevHive.Angular/src/app/components/feed/feed.component.html
index 342037c..1ec040b 100644
--- a/src/DevHive.Angular/src/app/components/feed/feed.component.html
+++ b/src/DevHive.Angular/src/app/components/feed/feed.component.html
@@ -19,7 +19,7 @@
<img id="top-bar-profile-pic" class="round-image" [src]="user.imageUrl" alt="" (click)="goToProfile()">
<form [formGroup]="createPostFormGroup" (ngSubmit)="createPost()">
<input id="top-bar-create-post" type="text" formControlName="newPostMessage" placeholder="What's on your mind?"/>
- <input type="submit" style="display: none" /> <!--> You need this element, so when you press enter the request is sent <--!>
+ <input type="submit" style="display: none" /> <!-- You need this element, so when you press enter the request is sent -->
</form>
<a id="top-bar-open-chat" href="">
<img src="assets/images/feed/chat-pic.png" alt=""/>
diff --git a/src/DevHive.Angular/src/app/services/user.service.ts b/src/DevHive.Angular/src/app/services/user.service.ts
index 5448313..3bfc857 100644
--- a/src/DevHive.Angular/src/app/services/user.service.ts
+++ b/src/DevHive.Angular/src/app/services/user.service.ts
@@ -74,7 +74,7 @@ export class UserService {
getUserByUsernameRequest(username: string): Observable<object> {
const options = {
- params: new HttpParams().set(AppConstants.SESSION_TOKEN_KEY, username),
+ params: new HttpParams().set('UserName', username),
};
return this._http.get(AppConstants.API_USER_URL + '/GetUser', options);
}