1
0
Fork 0

Safeguard deconstruct

This commit is contained in:
Lim Chee Aun 2023-08-30 17:47:17 +08:00
parent 91419b3243
commit 5461b06130

View file

@ -390,7 +390,7 @@ function App() {
<AccountSheet
account={snapStates.showAccount?.account || snapStates.showAccount}
instance={snapStates.showAccount?.instance}
onClose={({ destination }) => {
onClose={({ destination } = {}) => {
states.showAccount = false;
if (destination) {
states.showAccounts = false;