Skip to content

Commit c956c77

Browse files
committed
fix: Add 'None' option to payment method dropdown to allow resetting payment config
Fixes #583 - Added PAYMENT_METHOD_NONE as the first option in the payment method dropdown - Removed placeholderMessage since 'None' is now a selectable option - Users can now reset their payment configuration by selecting 'None'
1 parent 8bbc530 commit c956c77

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

apps/web/components/admin/settings/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,10 @@ const Settings = (props: SettingsProps) => {
813813
newSettings.paymentMethod || PAYMENT_METHOD_NONE
814814
}
815815
options={[
816+
{
817+
label: SITE_SETTINGS_PAYMENT_METHOD_NONE_LABEL,
818+
value: PAYMENT_METHOD_NONE,
819+
},
816820
{
817821
label: capitalize(
818822
PAYMENT_METHOD_STRIPE.toLowerCase(),
@@ -857,9 +861,6 @@ const Settings = (props: SettingsProps) => {
857861
}),
858862
)
859863
}
860-
placeholderMessage={
861-
SITE_SETTINGS_PAYMENT_METHOD_NONE_LABEL
862-
}
863864
disabled={!newSettings.currencyISOCode}
864865
/>
865866

0 commit comments

Comments
 (0)