Skip to content

Commit

Permalink
#39 - fix shuffle by reassigning the resulting array
Browse files Browse the repository at this point in the history
  • Loading branch information
kylanee committed Jun 23, 2022
1 parent b753070 commit bd757f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/pages/sponsor/event-detail/event-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ export class SponsorEventDetailComponent implements OnInit, OnDestroy {
}

shuffle(): void {
this.shuffleArray(this.scans.slice());
const array = this.scans.slice();
this.shuffleArray(array);
this.scans = new ObservableArray<SponsorScan>(array);
}

sendByEmail(): void {
Expand Down

0 comments on commit bd757f9

Please sign in to comment.