make selected accounts non optional
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -497,7 +497,9 @@ fn pfp_button<'me, 'a>(
|
||||
ndb: &Ndb,
|
||||
) -> ProfilePic<'me, 'a> {
|
||||
let account = accounts.get_selected_account();
|
||||
let profile = account.and_then(|a| ndb.get_profile_by_pubkey(txn, a.key.pubkey.bytes()).ok());
|
||||
let profile = ndb
|
||||
.get_profile_by_pubkey(txn, account.key.pubkey.bytes())
|
||||
.ok();
|
||||
|
||||
ProfilePic::from_profile_or_default(img_cache, profile.as_ref())
|
||||
.size(24.0)
|
||||
|
||||
Reference in New Issue
Block a user