mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-26 19:25:47 +03:00
Fix info stays when there's error
This commit is contained in:
parent
719a407414
commit
ad13f90374
1 changed files with 2 additions and 0 deletions
|
@ -45,9 +45,11 @@ function Account({ account, instance: propInstance, onClose }) {
|
|||
setUIState('default');
|
||||
return;
|
||||
}
|
||||
setInfo(null);
|
||||
setUIState('error');
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
setInfo(null);
|
||||
setUIState('error');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue