Skip to content

Commit

Permalink
fix: Commit icon for undefined author (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbausch authored and JohnstonCode committed Jul 1, 2019
1 parent 4d45079 commit 85c07e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/historyView/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ export function getCommitIcon(
author: string,
size: number = 16
): Uri | { light: Uri; dark: Uri } {
if (!configuration.get("gravatars.enabled", true) as boolean) {
if (
(!configuration.get("gravatars.enabled", true) as boolean) ||
author === undefined
) {
return getIconObject("icon-commit");
}

Expand Down

0 comments on commit 85c07e4

Please sign in to comment.