diff --git a/modules/viewmodel/mw.echo.dm.NotificationsModel.js b/modules/viewmodel/mw.echo.dm.NotificationsModel.js index 7ef866c4f..039800e63 100644 --- a/modules/viewmodel/mw.echo.dm.NotificationsModel.js +++ b/modules/viewmodel/mw.echo.dm.NotificationsModel.js @@ -297,9 +297,9 @@ // Normalize if using 'all' types = type === 'all' ? [ 'alert', 'message' ] : [ type ]; - for ( i = 0; i < type.length; i++ ) { + for ( i = 0; i < types.length; i++ ) { // Update all types - this.seenTime[ type[ i ] ] = time; + this.seenTime[ types[ i ] ] = time; } };