changeset tweak

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-09-21 13:49:34 +02:00
parent cc538eccc2
commit bf79a1cb77
2 changed files with 14 additions and 6 deletions
@@ -60,11 +60,13 @@ export const ProviderSettingsItem = (props: {
api
.getProfile({ optional: true })
.then((profileResponse: ProfileInfo | undefined) => {
if (sessionState === SessionState.SignedIn) {
setSignedIn(true);
}
if (profileResponse) {
setProfile(profileResponse);
if (!didCancel) {
if (sessionState === SessionState.SignedIn) {
setSignedIn(true);
}
if (profileResponse) {
setProfile(profileResponse);
}
}
});
}