We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e489714 commit bd48ea3Copy full SHA for bd48ea3
src/webviews/src/index.tsx
@@ -90,8 +90,12 @@ document.addEventListener('DOMContentLoaded', () => {
90
processOauthCallback(message.data as CloudAuthResponse)
91
break
92
case VscodeMessageAction.OpenOAuthSsoDialog:
93
- useOAuthStore.getState().setSSOFlow(message.data?.ssoFlow)
94
- useOAuthStore.getState().setSocialDialogState(message.data?.source || null)
+ const { source, ssoFlow } = message.data ?? {}
+ if (ssoFlow && source) {
95
+ const state = useOAuthStore.getState()
96
+ state.setSSOFlow(ssoFlow)
97
+ state.setSocialDialogState(source)
98
+ }
99
100
default:
101
0 commit comments