diff --git a/web/components/warning-confirmation-button.tsx b/web/components/warning-confirmation-button.tsx index 7bf26165..a4094156 100644 --- a/web/components/warning-confirmation-button.tsx +++ b/web/components/warning-confirmation-button.tsx @@ -18,7 +18,7 @@ export function WarningConfirmationButton(props: { openModalButtonClass?: string color: ColorType size: SizeType - actionLabel?: string + actionLabel: string }) { const { amount, @@ -32,12 +32,11 @@ export function WarningConfirmationButton(props: { actionLabel, } = props - const label = capitalize(actionLabel) ?? 'Wager' const buttonText = isSubmitting ? 'Submitting...' : amount - ? `${label} ${formatMoney(amount)}` - : label + ? `${actionLabel} ${formatMoney(amount)}` + : actionLabel if (!warning) { return (