We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a66086 commit 6ef0a4bCopy full SHA for 6ef0a4b
src/ParseUser.js
@@ -869,7 +869,7 @@ const DefaultController = {
869
updateUserOnDisk(user) {
870
const path = Storage.generatePath(CURRENT_USER_KEY);
871
const json = user.toJSON();
872
- json.className = user.constructor.name === 'ParseUser' ? '_User' : user.constructor.name;
+ json.className = user.constructor.name === ParseUser.name ? '_User' : user.constructor.name;
873
return Storage.setItemAsync(
874
path, JSON.stringify(json)
875
).then(() => {
0 commit comments