Skip to content

Commit

Permalink
fix: timeOut is not disabled by disableTimeOut: true in ToastNoAnim…
Browse files Browse the repository at this point in the history
…ation (#724)
  • Loading branch information
bram96 authored and scttcper committed Oct 16, 2019
1 parent 8856066 commit 9c890e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/toastr/toast-noanimation.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class ToastNoAnimation implements OnDestroy {
*/
activateToast() {
this.state = 'active';
if ((this.options.disableTimeOut === false || this.options.disableTimeOut !== 'timeOut') && this.options.timeOut) {
if (!(this.options.disableTimeOut === true || this.options.disableTimeOut === 'timeOut') && this.options.timeOut) {
this.timeout = setTimeout(() => {
this.remove();
}, this.options.timeOut);
Expand Down

0 comments on commit 9c890e6

Please sign in to comment.