mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-24 03:51:44 -05:00
fix: commit without related user
This commit is contained in:
@@ -33,6 +33,7 @@ class CommitsScreen extends StatelessWidget {
|
||||
messageHeadline
|
||||
committedDate
|
||||
author {
|
||||
name
|
||||
email
|
||||
avatarUrl
|
||||
user {
|
||||
@@ -82,7 +83,10 @@ class CommitsScreen extends StatelessWidget {
|
||||
SizedBox(height: 4),
|
||||
Row(
|
||||
children: <Widget>[
|
||||
Text(payload['author']['user']['login'],
|
||||
Text(
|
||||
payload['author']['user'] == null
|
||||
? payload['author']['name']
|
||||
: payload['author']['user']['login'],
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500, fontSize: 14)),
|
||||
Text(
|
||||
|
||||
Reference in New Issue
Block a user