Skip to content

Commit

Permalink
Fix Microsoft Login removing all accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Jan 3, 2023
1 parent 2881789 commit 3f6a937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/accounts/MicrosoftLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const MicrosoftLogin = ({ close }: { close: () => void }) => {
// Honestly, overwrite the old Microsoft account, but inform the user.
const alreadyExists = accounts[id] && accounts[id].type === 'microsoft'
setAccounts({
...accounts,
[id]: {
active:
Object.keys(accounts).length === 0 ||
Expand Down

0 comments on commit 3f6a937

Please sign in to comment.