Skip to content

Commit

Permalink
Merge pull request #192 from chain4travel/suite
Browse files Browse the repository at this point in the history
chore: update balance calculation in XAddressDetail.tsx and Docker Compose command syntax
  • Loading branch information
aeddaqqa authored Aug 19, 2024
2 parents 521d1d2 + 63299bf commit 82a48f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- name: build local image
run: |
docker-compose build --build-arg SUITE_IMAGE=${{ env.suite_image }}:${{ steps.setBranch.outputs.branch }} --build-arg WALLET_IMAGE=${{ env.wallet_image }}:${{ steps.setBranch.outputs.branch }}
docker compose build --build-arg SUITE_IMAGE=${{ env.suite_image }}:${{ steps.setBranch.outputs.branch }} --build-arg WALLET_IMAGE=${{ env.wallet_image }}:${{ steps.setBranch.outputs.branch }}
export SUITE_IMAGE=${{ env.suite_image }}:${{ steps.setBranch.outputs.branch }}
export WALLET_IMAGE=${{ env.wallet_image }}:${{ steps.setBranch.outputs.branch }}
docker-compose up -d
docker compose up -d
docker cp camino-suite-host-container:/app/camino-suite ./
mkdir -p /home/runner/.cache
docker cp camino-suite-host-container:/root/.cache/Cypress /home/runner/.cache/
Expand Down Expand Up @@ -100,10 +100,10 @@ jobs:
- name: build local image
run: |
docker-compose build --build-arg SUITE_IMAGE=${{ env.suite_image }}:${{ steps.setBranch.outputs.branch }} --build-arg WALLET_IMAGE=${{ env.wallet_image }}:${{ steps.setBranch.outputs.branch }}
docker compose build --build-arg SUITE_IMAGE=${{ env.suite_image }}:${{ steps.setBranch.outputs.branch }} --build-arg WALLET_IMAGE=${{ env.wallet_image }}:${{ steps.setBranch.outputs.branch }}
export SUITE_IMAGE=${{ env.suite_image }}:${{ steps.setBranch.outputs.branch }}
export WALLET_IMAGE=${{ env.wallet_image }}:${{ steps.setBranch.outputs.branch }}
docker-compose up -d
docker compose up -d
docker cp camino-suite-host-container:/app/camino-suite ./
mkdir -p /home/runner/.cache
docker cp camino-suite-host-container:/root/.cache/Cypress /home/runner/.cache/
Expand Down
11 changes: 9 additions & 2 deletions src/app/pages/XChainPages/Address/XAddressDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,14 @@ export default function XAddressDetail() {
symbol: assets.get(key)?.symbol || 'UNKNOWN',
})
})
setBalance(addressBalances[0]?.balance)

let totalBalance = 0
addressBalances.forEach((element: AddressBalance) => {
totalBalance += +element.balance
})

setBalance(totalBalance)

return addressBalances
}
return []
Expand Down Expand Up @@ -151,4 +158,4 @@ export const AddressOverviewCard = ({ balance }: { balance: number }) => {
</Box>
</Paper>
)
}
}

0 comments on commit 82a48f9

Please sign in to comment.