Skip to content

Commit

Permalink
feat: add emojis to votes
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Mar 28, 2024
1 parent 82420ae commit d5934dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pkg/fetchers/cosmos/responses/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ func (v VoteRPCResponse) IsError() bool {

func (v VoteRPCResponse) ToVote() (*types.Vote, error) {
votesMap := map[string]string{
"VOTE_OPTION_YES": "Yes",
"VOTE_OPTION_ABSTAIN": "Abstain",
"VOTE_OPTION_NO": "No",
"VOTE_OPTION_NO_WITH_VETO": "No with veto",
"VOTE_OPTION_YES": "👍Yes",
"VOTE_OPTION_ABSTAIN": "🤷Abstain",
"VOTE_OPTION_NO": "👎No",
"VOTE_OPTION_NO_WITH_VETO": "🖕No with veto",
}

var options []types.VoteOption
Expand Down
6 changes: 3 additions & 3 deletions pkg/fetchers/neutron/responses/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ type Vote struct {

func (v Vote) GetOption() string {
options := map[string]string{
"yes": "Yes",
"no": "No",
"abstain": "Abstain",
"yes": "👍Yes",
"no": "👎No",
"abstain": "🤷Abstain",
}

if option, ok := options[v.Vote]; ok {
Expand Down

0 comments on commit d5934dd

Please sign in to comment.