diff --git a/package/src/skia/types/Shader/Shader.ts b/package/src/skia/types/Shader/Shader.ts index 7f7e01610b..5f198b0685 100644 --- a/package/src/skia/types/Shader/Shader.ts +++ b/package/src/skia/types/Shader/Shader.ts @@ -40,7 +40,7 @@ export const processUniforms = ( for (let i = 0; i < uniformsCount; i++) { const name = source.getUniformName(i); const value = uniforms[name]; - if (!value === undefined) { + if (value === undefined) { throw new Error( // eslint-disable-next-line max-len `The runtime effect has the uniform value "${name}" declared, but it is missing from the uniforms property of the Runtime effect.`