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 &&