Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Get detailed wallet info screen empty balance issue fix #123

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions .github/workflows/build_branch.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/codeql.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Push Docker Image
on:
push:
branches:
- main # Change this to your main branch name

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
env:
VERSION: v1.0.0 # Replace with your desired version
run: |
docker build -t your-dockerhub-username/your-image-name:${{ env.VERSION }} .
docker push your-dockerhub-username/your-image-name:${{ env.VERSION }}

108 changes: 0 additions & 108 deletions .github/workflows/main.yml

This file was deleted.

8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:16 as deps
FROM node:18 as deps
WORKDIR /app
COPY ./package.json ./
RUN yarn install

FROM node:16 as build
FROM node:18 as build
WORKDIR /app
COPY --from=deps /app/node_modules /app/node_modules
COPY . .
RUN yarn run build

FROM node:16-slim
FROM node:18-slim
WORKDIR /app
ENV NODE_ENV=production
COPY --from=deps /app/node_modules /app/node_modules
Expand All @@ -18,7 +18,7 @@ COPY --from=build /app/public /app/public
ADD . .
CMD ["yarn", "run", "start"]

FROM node:16-slim as app
FROM node:18-slim as app
WORKDIR /app
ENV NODE_ENV=production
ARG VERSION
Expand Down
10 changes: 5 additions & 5 deletions app/routes/wallets/$walletId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ export const loader: LoaderFunction = async ({ request, params }) => {
`${API_WALLET}/wallets/${params.walletId}/balances/${balance.name}`,
'data'
);
if (detailedBalance) {
if (detailedBalance && detailedBalance.assets) {
let a = '';
Object.keys(detailedBalance.assets).forEach((key: string) => {
a = `${a}${key} ${detailedBalance.assets[key]} `;
Object.keys(detailedBalance.assets).forEach((key) => {
a = `${a}${key} ${detailedBalance.assets[key]} `;
});

balances.push({ ...detailedBalance, formattedAssets: a });
}
}
}

return {
Expand Down