Skip to content

Commit 24762a4

Browse files
committed
bug fix: fixing js conditional
1 parent 1b3fb23 commit 24762a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/badge-appveyor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default Component.extend({
1212
imageUrl: computed('badge.attributes.id', function() {
1313
let id = this.get('badge.attributes.id');
1414
let branch = this.get('branch');
15-
if (id !== undefined || id !== null) {
15+
if (id !== undefined && id !== null) {
1616
return `https://ci.appveyor.com/api/projects/status/${id}/branch/${branch}?svg=true`;
1717
} else {
1818
let service = this.get('service');

0 commit comments

Comments
 (0)