client: Fix automatic keypair generation.

This commit is contained in:
parazyd
2021-12-02 13:45:56 +01:00
parent eabd01c6fc
commit 0b7bd857de

View File

@@ -73,7 +73,7 @@ impl Client {
wallet.init_db().await?;
// Generate a new keypair if we don't have any.
if wallet.get_keypairs().await?.is_empty() {
if wallet.get_keypairs().await.is_err() {
wallet.key_gen().await?;
}