Commit a924f469b8af162e67ca8cd1cb3fcb52b2caff09

Authored by Victor Costa
1 parent 8db9266d
Exists in master and in 1 other branch dev-fixes

Small fix in community service

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);