Skip to content

Commit

Permalink
Using contents of TicketArray instead of slice of tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Fitzgerald committed Jul 25, 2018
1 parent 16313a7 commit 86c98a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zendesk/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ func (widget *Widget) Refresh() {
}
widget.UpdateRefreshedAt()

// Just to use the tickets variable somewhere to remove warning
fmt.Sprintf(string(len(tickets)))

widget.View.SetTitle(fmt.Sprintf("%s (%d)", widget.Name, ticketArray.Count))
widget.View.SetText(widget.textContent(tickets))
widget.View.SetText(widget.textContent(ticketArray.Tickets))

}

Expand Down

0 comments on commit 86c98a4

Please sign in to comment.