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 <AccountSheet
account={snapStates.showAccount?.account || snapStates.showAccount} account={snapStates.showAccount?.account || snapStates.showAccount}
instance={snapStates.showAccount?.instance} instance={snapStates.showAccount?.instance}
onClose={({ destination }) => { onClose={({ destination } = {}) => {
states.showAccount = false; states.showAccount = false;
if (destination) { if (destination) {
states.showAccounts = false; states.showAccounts = false;