Skip to content

Commit

Permalink
fix: not disable user data profile export button for github (gist) error
Browse files Browse the repository at this point in the history
Fixes: microsoft#209091

Co-authored-by: jazelly <xzha4350@gmail.com>
  • Loading branch information
jakecastelli and jazelly committed Mar 31, 2024
1 parent e4595ad commit 31cc17e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,9 @@ export class UserDataProfileImportExportService extends Disposable implements IU
await this.doExportProfile(userDataProfilesExportState);
} catch (error) {
this.notificationService.error(error);
if ((error as Error).message.includes('User did not consent to login.')) {
exportAction.enabled = true;
}
throw error;
}
}), this.notificationService);
Expand Down

0 comments on commit 31cc17e

Please sign in to comment.