diff options
author | Florian Dold <florian@dold.me> | 2022-09-16 17:41:13 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-16 17:41:13 +0200 |
commit | 117baf0e5b30c1848a83f31083a9b0f5c117c90a (patch) | |
tree | 474d39b6fb5dd34884a64a6a3a37053eac2a0130 | |
parent | 183c83661454cfb75ee6d2969b7529619d9a6226 (diff) |
-fix compiler error
-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; } |