Skip to content

Commit d45e488

Browse files
committed
fix(server): Fix default value when bill amount is undefined
Changed undefined values ​​for bill amount to the default value "0" to avoid potential null value errors.
1 parent 4579804 commit d45e488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ export const ServerCard: React.FC<ServerCardProps> = ({ data, mutate }) => {
711711
onClick={() =>
712712
patchPublicNote(
713713
"billingDataMod.amount",
714-
undefined,
714+
"0",
715715
)
716716
}
717717
>

0 commit comments

Comments
 (0)