Allow setting credit card if you have a currency

Stephen Paul Weber created

Change summary

sgx_jmp.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

sgx_jmp.rb 🔗

@@ -635,7 +635,8 @@ Command.new(
 
 Command.new(
 	"credit cards",
-	"💳 Credit Card Settings and Management"
+	"💳 Credit Card Settings and Management",
+	list_for: ->(customer:, **) { !!customer&.currency }
 ) {
 	Command.customer.then do |customer|
 		url = CONFIG[:credit_card_url].call(