From d1626a8460b24b40ecfe0bcbcf0f48e61d54fab2 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Thu, 10 Oct 2024 09:11:26 +0200 Subject: [PATCH] racers page --- alkatorapi/models.py | 1 - frontend/src/scripts/index.js | 28 ++++++++++++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/alkatorapi/models.py b/alkatorapi/models.py index 3d02c90..b29d2e7 100644 --- a/alkatorapi/models.py +++ b/alkatorapi/models.py @@ -72,6 +72,5 @@ class Racer(models.Model): paid = models.BooleanField(default=False) invoice_id = models.IntegerField(null=True, blank=True, unique=True) - def __str__(self): return f"" diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 332281c..124b717 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -164,7 +164,7 @@ class Main extends Component { {Object.keys(this.state.login_status).length === 0 && } {Object.keys(this.state.login_status).length === 0 && @@ -172,6 +172,11 @@ class Main extends Component { Registrace } + {this.state.login_status.racers.length > 1 && + + } {Object.keys(this.state.login_status).length > 0 &&