Update _code-samples/nft-modular-tutorials/account-support.js

Co-authored-by: Maria Shodunke <maria-robobug@users.noreply.github.com>
This commit is contained in:
Dennis Dawson
2025-06-06 12:33:54 -07:00
committed by GitHub
parent 4236a9fa45
commit 0dc41bd569

View File

@@ -32,7 +32,9 @@ async function getAccount() {
}
finally {
// Disconnect from the client
await client.disconnect();
if (client && client.isConnected()) {
await client.disconnect();
}
}
} // End of getAccount()