Removes the type check and makes it more lax.
Also now rejects the promise instead of throwing, so that it gets properly handled inside the promise context.
Throwing the error here does not get handled in jQuery deferreds unlike in the native Promises.
To test:
login to orcid
Claim and then delete the claim, the loading indicator will show and never go away.
Removes the type check and makes it more lax.
Also now rejects the promise instead of throwing, so that it gets properly handled inside the promise context.
Throwing the error here does not get handled in jQuery deferreds unlike in the native Promises.
To test: