We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a6082 commit 072a883Copy full SHA for 072a883
packages/react-liveness/src/components/FaceLivenessDetector/service/utils/liveness.ts
@@ -207,12 +207,12 @@ export function drawLivenessOvalInCanvas({
207
ctx.restore();
208
ctx.clearRect(0, 0, canvasWidth, canvasHeight);
209
210
- // fill the canvas with a transparent rectangle
+ // fill the canvas with a transparent rectangle if no color is defined
211
ctx.fillStyle = isStartScreen
212
? getComputedStyle(canvas).getPropertyValue(
213
'--amplify-colors-background-primary'
214
)
215
- : '#fff';
+ || '#fff';
216
ctx.fillRect(0, 0, canvasWidth, canvasHeight);
217
218
// On mobile our canvas is the width/height of the full screen.
0 commit comments