Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Account for Ghost user in PullRequestDetailView
Browse files Browse the repository at this point in the history
Fixes #2014

Co-Authored-By: Robert Sese <[email protected]>
  • Loading branch information
kuychaco and rsese committed Apr 24, 2019
1 parent fb568cc commit 52b17e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/views/pr-detail-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import CheckoutButton from './checkout-button';
import PullRequestCommitsView from '../views/pr-commits-view';
import PullRequestStatusesView from '../views/pr-statuses-view';
import ReviewsFooterView from '../views/reviews-footer-view';
import {PAGE_SIZE} from '../helpers';
import {PAGE_SIZE, GHOST_USER} from '../helpers';

export class BarePullRequestDetailView extends React.Component {
static propTypes = {
Expand Down Expand Up @@ -233,6 +233,10 @@ export class BarePullRequestDetailView extends React.Component {
const repo = this.props.repository;
const pullRequest = this.props.pullRequest;

if (pullRequest.author === null) {
pullRequest.author = GHOST_USER;
}

return (
<div className="github-IssueishDetailView native-key-bindings">
<div className="github-IssueishDetailView-container">
Expand Down

0 comments on commit 52b17e3

Please sign in to comment.