From f6012daa77616757c2ac409c27db294cbeb2e6b1 Mon Sep 17 00:00:00 2001 From: Nikita Nek Dudnik Date: Wed, 17 Jun 2020 17:50:12 +0200 Subject: [PATCH] fix(catalog): identity is done in a wrong order --- packages/core-api/src/app/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-api/src/app/App.tsx b/packages/core-api/src/app/App.tsx index 163a546943..849db24648 100644 --- a/packages/core-api/src/app/App.tsx +++ b/packages/core-api/src/app/App.tsx @@ -265,8 +265,8 @@ export class PrivateAppImpl implements BackstageApp { if (done) { throw new Error('Identity result callback was called twice'); } - setDone(true); this.identityApi.setSignInResult(result); + setDone(true); }, [done], );