Commit a924f469b8af162e67ca8cd1cb3fcb52b2caff09
1 parent
8db9266d
Exists in
master
and in
30 other branches
Small fix in community service
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/lib/ng-noosfero-api/http/community.service.ts
@@ -23,7 +23,7 @@ export class CommunityService extends RestangularService<noosfero.Community> { | @@ -23,7 +23,7 @@ export class CommunityService extends RestangularService<noosfero.Community> { | ||
23 | 23 | ||
24 | getByOwner(owner: any, params?: any) { | 24 | getByOwner(owner: any, params?: any) { |
25 | // TODO see a better way to verify the owner type | 25 | // TODO see a better way to verify the owner type |
26 | - if (owner.type == "Person") { | 26 | + if (owner.type === "Person") { |
27 | return this.getByPerson(owner, params); | 27 | return this.getByPerson(owner, params); |
28 | } else { | 28 | } else { |
29 | return this.getByEnvironment(params); | 29 | return this.getByEnvironment(params); |