Skip to content

Commit

Permalink
fix Anmerkungen (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Alex-K authored Mar 22, 2024
1 parent 3007f5f commit 33042b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
font-size="0.875rem"
font-weight="bold"
padding="10px 0 10px 0"
header-text="Verkehrsarten"
header-text="Ganglinie"
></panel-header>
<v-row
align="start"
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/composables/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ export function useRules() {
if (toCheck === null || toCheck === undefined) return true;
if (!toCheck.trim()) return true;
const parsed = parseFloat(toCheck);
if (!isNaN(parsed)) return true;
if (parsed >= minValue) return true;
if (!isNaN(parsed) && parsed >= minValue) return true;
return "Das Feld darf nur positive Zahlen enthalten";
}

Expand Down

0 comments on commit 33042b6

Please sign in to comment.