From 2466f01b0bd45556a4230fb0cba371c02e6d0b36 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Mon, 27 Jul 2020 14:17:57 +0700 Subject: [PATCH] added todo --- src/components/profile/ProfileAccounts/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/profile/ProfileAccounts/index.tsx b/src/components/profile/ProfileAccounts/index.tsx index 7760457e..a720dae0 100644 --- a/src/components/profile/ProfileAccounts/index.tsx +++ b/src/components/profile/ProfileAccounts/index.tsx @@ -31,8 +31,11 @@ const ProfileAccountsUnconnected: FC = ({ is_loading, }) => { const onMessage = useCallback(event => { + // TODO: handle errors if (event?.data?.type !== 'oauth_attach' || !event?.data?.payload?.token) return; + const token = event?.data?.payload?.token; + console.log('GOT TOKEN!!!', token); }, []);