Skip to content

Commit

Permalink
Fix for null error
Browse files Browse the repository at this point in the history
  • Loading branch information
skoshy committed Jan 5, 2017
1 parent 697b391 commit b92ea98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $( document ).ready(function() {
function changeName() {
name = window.prompt("What's your name?", "User");
if (
name != null &&
name != "null" &&
$.trim(name) != ''
) {
name = $.trim(name);
Expand Down

0 comments on commit b92ea98

Please sign in to comment.