diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index 028180d6..58b50ab5 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -136,10 +136,11 @@ function metaItem(metadata: string | undefined): { item?.voterStatus !== VoteOption.VOTE_OPTION_NO_WITH_VETO " >{{ - voteOptionToJSON(item?.voterStatus).replace( - 'VOTE_OPTION_', - '' - ) + voteOptionToJSON(item?.voterStatus) + .toLowerCase() + .replace(/^vote_option/, '') + .replaceAll(/_(.)/g, (m, g) => ' ' + g.toUpperCase()) + .trim() }} @@ -237,10 +238,11 @@ function metaItem(metadata: string | undefined): { {{ - voteOptionToJSON(item?.voterStatus).replace( - 'VOTE_OPTION_', - '' - ) + voteOptionToJSON(item?.voterStatus) + .toLowerCase() + .replace(/^vote_option/, '') + .replaceAll(/_(.)/g, (m, g) => ' ' + g.toUpperCase()) + .trim() }} diff --git a/src/modules/[chain]/cosmwasm/index.vue b/src/modules/[chain]/cosmwasm/index.vue index 37f9f602..05c2aed9 100644 --- a/src/modules/[chain]/cosmwasm/index.vue +++ b/src/modules/[chain]/cosmwasm/index.vue @@ -71,7 +71,13 @@ function myContracts() {