From 85c07e4ef18fd12cc3507cf44ebca162be7215ae Mon Sep 17 00:00:00 2001 From: Daniel Bausch Date: Mon, 1 Jul 2019 09:58:39 +0200 Subject: [PATCH] fix: Commit icon for undefined author (#626) --- src/historyView/common.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/historyView/common.ts b/src/historyView/common.ts index 0257c9ff..9536dce3 100644 --- a/src/historyView/common.ts +++ b/src/historyView/common.ts @@ -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"); }