Skip to content

Commit 4bc31df

Browse files
committed
2680 client - Use optional chaining
1 parent 6ae99d8 commit 4bc31df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/shared/components/connection/oauth2/useOAuth2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const useOAuth2 = (props: Oauth2Props) => {
162162
return;
163163
}
164164

165-
curStateRef.current = message?.data?.payload.state;
165+
curStateRef.current = message?.data?.payload?.state;
166166

167167
try {
168168
const error = message?.data?.error;

0 commit comments

Comments
 (0)