fix: 💨
This commit is contained in:
@@ -171,9 +171,7 @@ class LocalStorageService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addAccount(account: TAccount) {
|
addAccount(account: TAccount) {
|
||||||
if (this.accounts.find((act) => isSameAccount(act, account))) {
|
this.accounts = this.accounts.filter((act) => !isSameAccount(act, account))
|
||||||
return
|
|
||||||
}
|
|
||||||
this.accounts.push(account)
|
this.accounts.push(account)
|
||||||
window.localStorage.setItem(StorageKey.ACCOUNTS, JSON.stringify(this.accounts))
|
window.localStorage.setItem(StorageKey.ACCOUNTS, JSON.stringify(this.accounts))
|
||||||
return account
|
return account
|
||||||
|
|||||||
Reference in New Issue
Block a user