wp-graphql-woocommerce
wp-graphql-woocommerce copied to clipboard
`downloadsRemaining` returns `null` when is of valid type `string`
What does this implement/fix? Explain your changes.
This PR fixes an issue when downloadsRemaining is of type string instead of the expected one integer. It changes how we check for valid values for downloadsRemaining everywhere in the codebase, and applies the most minimal set of changes to ensure we're not nullifying valid strigified values.
Does this close any currently open issues?
Closes #937.
Any relevant logs, error output, GraphiQL screenshots, etc?
—
Any other comments?
Let me know if there's any extra changes you'd like me to make.