+
+ {moreThanOneAccount && (
+
+
+
+ )}
+
{
+ if (isCurrent) {
+ try {
+ const info = await masto.v1.accounts.fetch(
+ account.info.id,
+ );
+ console.log('fetched account info', info);
+ account.info = info;
+ store.local.setJSON('accounts', accounts);
+ reload();
+ } catch (e) {}
+ }
+ }}
+ />
+ {
+ states.showAccount = `${account.info.username}@${account.instanceURL}`;
+ }}
+ />
+
+
+ {isDefault && moreThanOneAccount && (
+ <>
+ Default{' '}
+ >
+ )}
+ {!isCurrent && (
+
+ )}
+
+
+
+ );
+ })}
+