Skip to content

Commit

Permalink
Merge pull request #64 from dwarvesf/fix/remove-unassigned-in-earn-list
Browse files Browse the repository at this point in the history
fix: remove unassigned in earn list
  • Loading branch information
baenv authored Jul 11, 2024
2 parents aee13d0 + c6c1074 commit 59e36b5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/discord/view/earn/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,10 @@ func (e *Earn) ListMemoEarn(original *model.DiscordMessage, earns []model.MemoEa
for i := range earn.PICs {
pic += fmt.Sprintf("<@%s> ", earn.PICs[i])
}

if len(pic) == 0 {
pic = "**unassigned**"
if pic != "" {
content += fmt.Sprintf(" - %s\n", pic)
}

content += fmt.Sprintf(" - %s\n", pic)

if strings.EqualFold(earn.Status, "Open") {
if lenOpening >= 10 {
continue
Expand Down

0 comments on commit 59e36b5

Please sign in to comment.