mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 01:05:34 +03:00
Fix wrong API call when adding new account
This commit is contained in:
parent
903944e9c2
commit
39ec0d29e2
2 changed files with 4 additions and 1 deletions
|
@ -249,7 +249,8 @@ function App() {
|
|||
<Route path="/:instance?/s/:id" element={<Status />} />
|
||||
</Routes>
|
||||
<div>
|
||||
{!snapStates.settings.shortcutsColumnsMode &&
|
||||
{isLoggedIn &&
|
||||
!snapStates.settings.shortcutsColumnsMode &&
|
||||
snapStates.settings.shortcutsViewMode !== 'multi-column' && (
|
||||
<Shortcuts />
|
||||
)}
|
||||
|
|
|
@ -93,6 +93,8 @@ export async function initAccount(client, instance, accessToken) {
|
|||
const masto = client;
|
||||
const mastoAccount = await masto.v1.accounts.verifyCredentials();
|
||||
|
||||
store.session.set('currentAccount', mastoAccount.id);
|
||||
|
||||
saveAccount({
|
||||
info: mastoAccount,
|
||||
instanceURL: instance.toLowerCase(),
|
||||
|
|
Loading…
Reference in a new issue