Skip to content

Commit a912ffc

Browse files
committed
Explain Null vs 0
1 parent dbd02de commit a912ffc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/ui/multi-commit-operation/dialog/conflicts-dialog.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ export class ConflictsDialog extends React.Component<
188188
)
189189
}
190190

191+
/**
192+
* Renders the banner based on count of resolved files.
193+
*
194+
* If the count of resolved files is null, then the banner is
195+
* not rendered as no conflicts have been resolved, yet. If the count of resolved
196+
* files is 0, then there have been conflicts resolved, but they have been
197+
* undone, we show an undone banner.
198+
*/
191199
public renderBanner(conflictedFilesCount: number) {
192200
const { countResolved } = this.state
193201
if (countResolved === null) {

0 commit comments

Comments
 (0)