Skip to content

Commit

Permalink
add two minor fixes (#243)
Browse files Browse the repository at this point in the history
* add two minor fixes

* bump
  • Loading branch information
tenub authored Feb 7, 2025
1 parent 9284899 commit 409f871
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schematichq/schematic-components",
"version": "0.4.0",
"version": "0.4.1",
"main": "dist/schematic-components.cjs.js",
"module": "dist/schematic-components.esm.js",
"types": "dist/schematic-components.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ export const Checkout = ({
<Text $size={18}>{t("Add payment method")}</Text>
</Box>

<PaymentForm onConfirm={(value) => setPaymentMethodId(value)} />
<PaymentForm
onConfirm={(value) => {
setPaymentMethodId(value);
togglePaymentForm();
}}
/>

{data.subscription?.paymentMethod && (
<Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const PaymentForm = ({ onConfirm }: PaymentFormProps) => {
id="submit"
disabled={isLoading || !stripe || !elements || isConfirmed}
isLoading={isLoading}
style={{ flexShrink: 0 }}
$color="primary"
>
{isLoading ? t("Loading") : t("Save payment method")}
Expand Down

0 comments on commit 409f871

Please sign in to comment.