diff --git a/example/src/BarcodeScanner.tsx b/example/src/BarcodeScanner.tsx
index b39bfd4..09ed742 100644
--- a/example/src/BarcodeScanner.tsx
+++ b/example/src/BarcodeScanner.tsx
@@ -19,7 +19,7 @@ export const BarcodeScanner: React.FC<{}> = () => {
     onDecodeResult(result) {
       setResult(result.getText());
     },
-    onDecodeException(error) {
+    onDecodeError(error) {
       // eslint-disable-next-line no-console
       console.log(error);
     },