Skip to content

Commit 3bb9e74

Browse files
authored
fix(camera): reset photoSrc on cancel (#105)
1 parent c9eb4f9 commit 3bb9e74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/camera/camera.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ export class CameraPWA {
325325
const track = this.stream && this.stream.getTracks()[0];
326326
let c = track && track.getConstraints();
327327
this.photo = null;
328+
this.photoSrc = null;
328329

329330
if (c) {
330331
this.initCamera({

0 commit comments

Comments
 (0)