-fix compiler error

This commit is contained in:
Florian Dold 2022-09-16 17:41:13 +02:00
parent 183c836614
commit 117baf0e5b
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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;
}