From ae641b5744971a084c93ea716282fbff8407cea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B3=D9=84=D9=8A=D9=85=20=D8=A7=D9=84=D9=82=D8=B3=D8=A7?= =?UTF-8?q?=D9=85?= <49223890+salimsea@users.noreply.github.com> Date: Fri, 16 Dec 2022 08:04:52 +0700 Subject: [PATCH] add type variable request seems like forgot to add the variable request in line 67 --- example/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/App.js b/example/App.js index 26188da..49acea6 100644 --- a/example/App.js +++ b/example/App.js @@ -64,7 +64,7 @@ export default class App extends Component { if (image1 == null || image1.bitmap == null || image1.bitmap == "" || image2 == null || image2.bitmap == null || image2.bitmap == "") return this.setState({ similarity: "Processing..." }) - request = new MatchFacesRequest() + const request = new MatchFacesRequest() request.images = [image1, image2] FaceSDK.matchFaces(JSON.stringify(request), response => { response = MatchFacesResponse.fromJson(JSON.parse(response))