Skip to content

Commit 39e9a99

Browse files
committed
Revert "try-catch statement to parse mockCallState"
This reverts commit c0a7f66.
1 parent a99b486 commit 39e9a99

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • packages/react-composites/tests/browser/call/app

packages/react-composites/tests/browser/call/app/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ import { MockCallAdapter } from './mocks/MockCallAdapter';
2727
const urlSearchParams = new URLSearchParams(window.location.search);
2828
const params = Object.fromEntries(urlSearchParams.entries());
2929

30-
let mockCallState = undefined;
31-
try {
32-
mockCallState = JSON.parse(params.mockCallState);
33-
} catch (e) {
34-
console.log('Query parameter mockCallState could not be parsed: ', params.mockCallState);
35-
}
30+
const mockCallState = JSON.parse(params.mockCallState);
3631
const useFrLocale = Boolean(params.useFrLocale);
3732
const showCallDescription = Boolean(params.showCallDescription);
3833
const injectParticipantMenuItems = Boolean(params.injectParticipantMenuItems);

0 commit comments

Comments
 (0)