Skip to content

Commit 76ebb0f

Browse files
committed
use built fn to check undefined
1 parent 85182c9 commit 76ebb0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/home/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
var _ = require('lodash');
12
var View = require('ampersand-view');
23
var format = require('util').format;
34
var SidebarView = require('../sidebar');
@@ -50,7 +51,7 @@ var HomeView = View.extend({
5051
},
5152
render: function() {
5253
this.renderWithTemplate(this);
53-
if (typeof localStorage.tourHasRun === 'undefined') {
54+
if (_.isUndefined(localStorage.tourHasRun)) {
5455
this.renderSubview(new TourView(), this.queryByHook('tour-container'));
5556
localStorage.tourHasRun = 'true';
5657
}

0 commit comments

Comments
 (0)