@nibgate/sdk 0.2.22 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nibgate/sdk",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "Framework-agnostic browser and server package for creator-owned gated content, unlock events, and receipts.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -267,7 +267,7 @@ export function renderDefaultUnlockUI(container, resource, options = {}) {
267
267
  }
268
268
 
269
269
  async function refreshBalance() {
270
- if (stateRef?.destroyed) return;
270
+ if (!card.isConnected) return;
271
271
  const addr = ctrl.getWalletAddress();
272
272
  if (!addr) return;
273
273
  const txt = ensureBalEl().querySelector('[data-nibgate-bal-text]');