Skip to content

Commit 96fc3cd

Browse files
committed
Update ParseUser.js
1 parent a19a625 commit 96fc3cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ParseUser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ class ParseUser extends ParseObject {
425425
if (options.hasOwnProperty('installationId')) {
426426
signupOptions.installationId = options.installationId;
427427
}
428-
if (options.hasOwnProperty('context') && typeof options.context === 'object') {
428+
if (
429+
options.hasOwnProperty('context') &&
430+
Object.prototype.toString.call(options.context) === '[object Object]'
431+
) {
429432
signupOptions.context = options.context;
430433
}
431434

0 commit comments

Comments
 (0)