Skip to content

Commit

Permalink
Fix incompatibility with strict null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jelbourn committed Jun 23, 2017
1 parent 60d8f92 commit dae0fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/snack-bar/snack-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class MdSnackBar {
// If a dismiss timeout is provided, set up dismiss based on after the snackbar is opened.
if (config.duration && config.duration > 0) {
snackBarRef.afterOpened().subscribe(() => {
snackBarRef._dismissAfter(config!.duration);
snackBarRef._dismissAfter(config!.duration!);
});
}

Expand Down

0 comments on commit dae0fc3

Please sign in to comment.