Skip to content

Commit

Permalink
fix(Android): missing negation in check for mismatched frames (#2214)
Browse files Browse the repository at this point in the history
## Description

The error check was bad - it reported error each time the frames were
the same.
Obviously it shoud report frame mismatch.


## Changes

Added missing negation.

## Checklist

- [x] Ensured that CI passes
  • Loading branch information
kkafar authored and alduzy committed Jun 28, 2024
1 parent 5b3052c commit 98ec45e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RNSScreenComponentDescriptor final
// state update.
if (screenShadowNode.getFrameCorrectionModes().check(
FrameCorrectionModes::Mode::FrameHeightCorrection) &&
compareFrameSizes(
!compareFrameSizes(
screenShadowNode.layoutMetrics_.frame.size,
stateData.frameSize)) {
LOG(ERROR)
Expand Down

0 comments on commit 98ec45e

Please sign in to comment.