kopia lustrzana https://github.com/cheeaun/phanpy
Fix wrong API call when switch to account's instance
rodzic
979c3b1498
commit
2145f761b5
|
@ -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);
|
||||||
|
|
Ładowanie…
Reference in New Issue