postprocess showTutorial to ensure we deal with a boolean

This commit is contained in:
Johannes Zellner
2016-05-06 14:05:47 +02:00
parent f3811e3df9
commit e48156dceb

View File

@@ -30,6 +30,7 @@ function postProcess(result) {
// The username may be null or undefined in the db, let's ensure it is a string
result.username = result.username || '';
result.showTutorial = !!result.showTutorial;
return result;
}