mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +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,
|
||||
authenticated,
|
||||
}) {
|
||||
const { masto } = api();
|
||||
const { masto } = api({
|
||||
instance,
|
||||
});
|
||||
const [uiState, setUIState] = useState('default');
|
||||
const isString = typeof account === 'string';
|
||||
const [info, setInfo] = useState(isString ? null : account);
|
||||
|
|
Loading…
Reference in a new issue