Skip to content

Commit

Permalink
fix: on unibi denom when stalking (#2)
Browse files Browse the repository at this point in the history
* fix: only unibi when staking

* refactor: remove extra console log

* fix: workflow fail

* chore: github workflow revert

* ci: using actions/cache@v2

* ci: using latest borales/actions-yarn

* ci: run github workflow with yarn as cache

* ci: prod github workflow update
  • Loading branch information
CalicoNino authored Sep 29, 2023
1 parent 4ae22d6 commit d833edf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set Node.js
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 16.x
cache: "yarn"

- uses: borales/[email protected]
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install --ignore-engines

- uses: borales/actions-yarn@v3.0.0
- uses: borales/actions-yarn@v4
with:
cmd: build

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set Node.js
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 16.x
cache: "yarn"

- uses: borales/[email protected]
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install --ignore-engines

- uses: borales/actions-yarn@v3.0.0
- uses: borales/actions-yarn@v4
with:
cmd: build

Expand Down
4 changes: 2 additions & 2 deletions src/views/components/OperationModal/components/Delegate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ export default {
},
setupBalance() {
if (this.balance && this.balance.length > 0) {
this.token = this.balance[0].denom
return this.balance
this.token = this.balance.filter(x => x.denom === 'unibi')[0].denom
return this.balance.filter(x => x.denom === 'unibi')
}
return []
},
Expand Down

0 comments on commit d833edf

Please sign in to comment.