commit 117baf0e5b30c1848a83f31083a9b0f5c117c90a parent 183c83661454cfb75ee6d2969b7529619d9a6226 Author: Florian Dold <florian@dold.me> Date: Fri, 16 Sep 2022 17:41:13 +0200 -fix compiler error Diffstat:
| M | packages/taler-wallet-core/src/wallet.ts | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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; }