Skip to content

Commit 85c07e4

Browse files
dbauschJohnstonCode
authored andcommitted
fix: Commit icon for undefined author (#626)
1 parent 4d45079 commit 85c07e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/historyView/common.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ export function getCommitIcon(
198198
author: string,
199199
size: number = 16
200200
): Uri | { light: Uri; dark: Uri } {
201-
if (!configuration.get("gravatars.enabled", true) as boolean) {
201+
if (
202+
(!configuration.get("gravatars.enabled", true) as boolean) ||
203+
author === undefined
204+
) {
202205
return getIconObject("icon-commit");
203206
}
204207

0 commit comments

Comments
 (0)