Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Latropos committed Oct 11, 2024
1 parent 4b6e2c4 commit 0ac1839
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function compareSnapshot(
const expectMismatch = jsValue < 0 && expectNegativeValueMismatch;
let valuesAreMatching = isEqual(jsValue, nativeValue);

if (key === 'opacity' && jsValue === 1 && nativeValue === undefined) {
if ((key as string) === 'opacity' && jsValue === 1 && nativeValue === undefined) {
// undefined opacity may get translated into 1, as it is the default value
valuesAreMatching = true;
}
Expand Down

0 comments on commit 0ac1839

Please sign in to comment.