1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-04-01 22:23:42 +03:00

Fix info stays when there's error

This commit is contained in:
Lim Chee Aun 2023-02-06 19:54:35 +08:00
parent 719a407414
commit ad13f90374

View file

@ -45,9 +45,11 @@ function Account({ account, instance: propInstance, onClose }) {
setUIState('default'); setUIState('default');
return; return;
} }
setInfo(null);
setUIState('error'); setUIState('error');
} catch (err) { } catch (err) {
console.error(err); console.error(err);
setInfo(null);
setUIState('error'); setUIState('error');
} }
} }