Handle False Registration

Christopher Vollick created

Turns out my dummy-sgx doesn't act the same as production.
Rather than getting a successful registration with no phone, in production I
get false, so I need to handle that.

Change summary

lib/customer_info.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

lib/customer_info.rb 🔗

@@ -16,7 +16,7 @@ class CustomerInfo
 		customer.registered?.then do |registration|
 			new(
 				plan: plan,
-				tel: registration&.phone,
+				tel: registration ? registration.phone : nil,
 				balance: customer.balance,
 				expires_at: expires_at
 			)