mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +01:00
Fix wrong API call when switch to account's instance
This commit is contained in:
parent
979c3b1498
commit
2145f761b5
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ function AccountInfo({
|
||||||
instance,
|
instance,
|
||||||
authenticated,
|
authenticated,
|
||||||
}) {
|
}) {
|
||||||
const { masto } = api();
|
const { masto } = api({
|
||||||
|
instance,
|
||||||
|
});
|
||||||
const [uiState, setUIState] = useState('default');
|
const [uiState, setUIState] = useState('default');
|
||||||
const isString = typeof account === 'string';
|
const isString = typeof account === 'string';
|
||||||
const [info, setInfo] = useState(isString ? null : account);
|
const [info, setInfo] = useState(isString ? null : account);
|
||||||
|
|
Loading…
Reference in a new issue