Skip to content

Commit 8c53fbc

Browse files
committed
Updates fetch messaging again
1 parent dd93324 commit 8c53fbc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/webviews/apps/plus/graph/GraphWrapper.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,9 +1130,12 @@ export function GraphWrapper({
11301130
tooltip += ` ${remote}`;
11311131
fetchTooltip += ` ${remote}`;
11321132
}
1133-
const lastFetchedText = fetchedText ? `\nLast fetched ${fetchedText}` : '\nNever fetched';
1134-
tooltip += lastFetchedText;
1135-
fetchTooltip += lastFetchedText;
1133+
1134+
if (fetchedText != null) {
1135+
const lastFetchedText = `\nLast fetched ${fetchedText}`;
1136+
tooltip += lastFetchedText;
1137+
fetchTooltip += lastFetchedText;
1138+
}
11361139

11371140
return (
11381141
<div className="titlebar__group">

0 commit comments

Comments
 (0)