Skip to content

Commit

Permalink
Fix summary rating count
Browse files Browse the repository at this point in the history
  • Loading branch information
HippocampusGirl committed Jul 1, 2020
1 parent 039fd94 commit 52a265e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view-model/ratings-view-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class RatingsViewModel {
scan = new Scan(index, img);
this.scanArray.push(scan);
this.scansByKeyPath[scanKeyPath] = scan;
this.scanIndicesByRating["none"].push(i);
this.scanIndicesByRating["none"].push(index);
scan.listen((rating: Rating): void => {
for (const r of ratings) {
if (r === rating) {
Expand Down

0 comments on commit 52a265e

Please sign in to comment.