postprocess showTutorial to ensure we deal with a boolean
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user