Skip to content

Commit

Permalink
ISSUE-90: Better handling of synchronous (sequential) requests
Browse files Browse the repository at this point in the history
* trying to fix failing test case on CI
  • Loading branch information
gnom7 committed Sep 16, 2018
1 parent 1e6eaf4 commit de85cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/ng-http-loader.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class NgHttpLoaderComponent implements OnDestroy, OnInit {

private handleSpinnerVisibility(showSpinner: boolean): void {
const now = Date.now();
if (showSpinner && this.visibleUntil < now) {
if (showSpinner && this.visibleUntil <= now) {
this.visibleUntil = now + this.minDuration;
}
this.isSpinnerVisible = showSpinner;
Expand Down

0 comments on commit de85cd0

Please sign in to comment.