this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Store last accessed

+6 -2
+6 -2
src/utils/store-utils.js
··· 10 10 11 11 export function getAccount(id) { 12 12 const accounts = getAccounts(); 13 - if (!id) return accounts[0]; 14 - return accounts.find((a) => a.info.id === id) || accounts[0]; 13 + const account = id ? accounts.find((a) => a.info.id === id) : accounts[0]; 14 + account.lastAccessedAt = Date.now(); 15 + setTimeout(() => { 16 + saveAccounts(accounts); 17 + }, 1); 18 + return account; 15 19 } 16 20 17 21 export function getAccountByAccessToken(accessToken) {