diff options
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index c993155d8..578237eb8 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -1462,7 +1462,7 @@ export async function handleCoreApiRequest( */ export class Wallet { private ws: InternalWalletState; - private _client: WalletCoreApiClient; + private _client: WalletCoreApiClient | undefined; private constructor( db: DbAccess<typeof WalletStoresV1>, @@ -1474,6 +1474,9 @@ export class Wallet { } get client(): WalletCoreApiClient { + if (!this._client) { + throw Error(); + } return this._client; } |