Skip to content

Commit b12e7b5

Browse files
authored
insure t is treated as string (#1173)
1 parent 8080d75 commit b12e7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcweb/pages/hosting_countdown/timer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def timer():
55
remove_negative_sign = rx.vars.function.ArgsFunctionOperation.create(
66
args_names=("t",),
7-
return_expr=rx.vars.sequence.string_replace_operation(rx.Var("t"), "-", ""),
7+
return_expr=rx.vars.sequence.string_replace_operation(rx.Var("t").to(str), "-", ""),
88
)
99

1010
return rx.box(

0 commit comments

Comments
 (0)