Skip to content

Commit

Permalink
Fix #992 (#999)
Browse files Browse the repository at this point in the history
* Fix #992

Revert #978

* remove static ParseUser class name
  • Loading branch information
dplewis authored Nov 14, 2019
1 parent 3a66086 commit 6ef0a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ParseUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ const DefaultController = {
updateUserOnDisk(user) {
const path = Storage.generatePath(CURRENT_USER_KEY);
const json = user.toJSON();
json.className = user.constructor.name === 'ParseUser' ? '_User' : user.constructor.name;
json.className = user.constructor.name === ParseUser.name ? '_User' : user.constructor.name;
return Storage.setItemAsync(
path, JSON.stringify(json)
).then(() => {
Expand Down

0 comments on commit 6ef0a4b

Please sign in to comment.