Skip to content

Commit

Permalink
fix(contributors): make the showing of contributor badge case insensi…
Browse files Browse the repository at this point in the history
…tive (#925)

* Update computed.js

* Update computed.js
  • Loading branch information
Haroenv authored and CompuIves committed Jun 25, 2018
1 parent 6047bf5 commit 13c9eda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/app/src/app/store/computed.js
@@ -1,3 +1,8 @@
export function isContributor(username: string) {
return this.contributors.indexOf(username) > -1;
return (
this.contributors.findIndex(
contributor =>
contributor.toLocaleLowerCase() === username.toLocaleLowerCase()
) > -1
);
}

0 comments on commit 13c9eda

Please sign in to comment.