From b252e4f7d445ba4d78b04444ecf1af9145ba8242 Mon Sep 17 00:00:00 2001 From: Teofil Jolte Date: Mon, 9 Sep 2024 10:02:50 +0300 Subject: [PATCH] Fix --- .github/workflows/docker.yaml | 2 +- frontend/Dockerfile | 2 +- frontend/package.json | 2 +- .../cards/block-production-won-slots-cards.component.ts | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 716645eaa7..41b3f632cd 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -176,7 +176,7 @@ jobs: - build_configuration: compose tag_suffix: "" - build_configuration: staging - tag_suffix: "-producer-demo" + tag_suffix: "" runs-on: ubuntu-latest needs: - build-openmina-frontend-image diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ece84a24fa..e8684fddba 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,5 @@ FROM node:18 AS BUILD_IMAGE -ARG BUILD_CONFIGURATION=staging +ARG BUILD_CONFIGURATION=producer WORKDIR /app COPY . . RUN npm install diff --git a/frontend/package.json b/frontend/package.json index 0b2b7c991e..fba516b62e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "0.1", + "version": "0.8.3", "scripts": { "install:deps": "npm install", "start": "npm install && ng serve --configuration local --open", diff --git a/frontend/src/app/features/block-production/won-slots/cards/block-production-won-slots-cards.component.ts b/frontend/src/app/features/block-production/won-slots/cards/block-production-won-slots-cards.component.ts index 75e77bd1a0..aed1ae98da 100644 --- a/frontend/src/app/features/block-production/won-slots/cards/block-production-won-slots-cards.component.ts +++ b/frontend/src/app/features/block-production/won-slots/cards/block-production-won-slots-cards.component.ts @@ -72,6 +72,7 @@ export class BlockProductionWonSlotsCardsComponent extends StoreDispatcher imple ) .map(s => s.coinbaseRewards + s.txFeesRewards).reduce((a, b) => a + b, 0).toFixed(0); + this.card6.totalRewards = isNaN(+this.card6.totalRewards) ? '0' : this.card6.totalRewards; this.detect(); }, filter(slots => slots.length > 0)); }