Make progress existance check better

This commit is contained in:
Realmy 2024-11-14 17:20:40 +01:00
parent 03484be5d6
commit a97759e130
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
>
<div
class="h-full bg-accent-background dynadark:bg-accent-foreground absolute left-0 top-0"
class:percentless-animation={!progress}
class:percentless-animation={progress === null}
style={percent
? "width: {percent}%; transition: 500ms linear width;"
: ""}