Skip to content

Commit

Permalink
Fix stub transport. Add log for qrCode form metadata (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeinAsylum authored Nov 15, 2022
1 parent f994bec commit 2b0fedd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const QrCodeInteractionForm: React.FC = () => {
const dispatch = useAppDispatch();

useEffect(() => {
console.info('qrCodeForm metadata', JSON.stringify(qrCodeForm));
isQrCodeRedirect(qrCodeForm) && window.open(request.qrCode, '_self');
dispatch(finishInteraction());
}, []);
Expand Down
4 changes: 2 additions & 2 deletions src/app/stub-transport.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Transport } from 'cross-origin-communicator';

export class StubTransport implements Transport {
emit(_eventName: string, data?: object) {
console.info('transport stub emit: ', name, data);
emit(eventName: string, data?: object) {
console.info('transport stub emit: ', eventName, data);
}

on(eventName: string, callback: (data: object) => void): void {
Expand Down

0 comments on commit 2b0fedd

Please sign in to comment.