fix: 💨
This commit is contained in:
parent
f7dccde746
commit
d81dc3fe4e
1 changed files with 1 additions and 3 deletions
|
|
@ -171,9 +171,7 @@ class LocalStorageService {
|
|||
}
|
||||
|
||||
addAccount(account: TAccount) {
|
||||
if (this.accounts.find((act) => isSameAccount(act, account))) {
|
||||
return
|
||||
}
|
||||
this.accounts = this.accounts.filter((act) => !isSameAccount(act, account))
|
||||
this.accounts.push(account)
|
||||
window.localStorage.setItem(StorageKey.ACCOUNTS, JSON.stringify(this.accounts))
|
||||
return account
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue