Handle False Registration
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.
1 files changed, 1 insertions(+), 1 deletions(-)
M lib/customer_info.rb => lib/customer_info.rb +1 -1
@@ 16,7 16,7 @@ class CustomerInfo
customer.registered?.then do |registration|
- tel: registration&.phone,
+ tel: registration ? registration.phone : nil,