From 1c13878c4d0a17d10f249ead9d6d550e7d10bab4 Mon Sep 17 00:00:00 2001 From: MarieDW75 <141626764+MarieDW75@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:34:18 +0200 Subject: [PATCH] Update plan.rb to fix error when `minimum_commitment` is nil --- lib/lago/api/resources/plan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lago/api/resources/plan.rb b/lib/lago/api/resources/plan.rb index 7b58e52..06b3eb1 100644 --- a/lib/lago/api/resources/plan.rb +++ b/lib/lago/api/resources/plan.rb @@ -39,7 +39,7 @@ def whitelist_params(params) end def whitelist_minimum_commitment(minimum_commitment) - minimum_commitment.slice( + minimum_commitment&.slice( :amount_cents, :invoice_display_name, :tax_codes,