Skip to content

Commit 6ef0a4b

Browse files
authored
Fix #992 (#999)
* Fix #992 Revert #978 * remove static ParseUser class name
1 parent 3a66086 commit 6ef0a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseUser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ const DefaultController = {
869869
updateUserOnDisk(user) {
870870
const path = Storage.generatePath(CURRENT_USER_KEY);
871871
const json = user.toJSON();
872-
json.className = user.constructor.name === 'ParseUser' ? '_User' : user.constructor.name;
872+
json.className = user.constructor.name === ParseUser.name ? '_User' : user.constructor.name;
873873
return Storage.setItemAsync(
874874
path, JSON.stringify(json)
875875
).then(() => {

0 commit comments

Comments
 (0)