Skip to content

Fix greaterThan and lessThan operators platform differences #688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

jkadamczyk
Copy link
Contributor

@jkadamczyk jkadamczyk commented Mar 27, 2020

Fixes #609

Android was throwing an error when number was compared to undefined (due to null to Double cast), whereas iOS was returning false in such situation.
In order to make the behavior the same I added check for null value in lessThan and greaterThan operator nodes. If value is null the operator returns false, if not it proceeds with comparison.

@jkadamczyk jkadamczyk requested a review from jgonet March 27, 2020 08:38
@jkadamczyk jkadamczyk changed the title Fix #609 greaterThan and lessThan operators platform differences Fix greaterThan and lessThan operators platform differences Mar 27, 2020
@jgonet jgonet merged commit d9cc2ec into master Apr 2, 2020
@jgonet jgonet deleted the @adamczyk/lessThan-greaterThan-operators branch April 2, 2020 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

greaterThan / lessThan platforms mismatch
2 participants