- ({t('agreement.executed_on')} {formatDate(agreementData.signed_at)})
+
+ ({t('agreement.executed_on')}:
+ {
+ agreementData && agreementData.signed_at ? formatDate(agreementData.signed_at) : 'N/A'
+ })
)}
diff --git a/web/app/controllers/api_users_controller.rb b/web/app/controllers/api_users_controller.rb
index 51bec94a8..18fdd64cf 100644
--- a/web/app/controllers/api_users_controller.rb
+++ b/web/app/controllers/api_users_controller.rb
@@ -56,6 +56,7 @@ class ApiUsersController < ApiController
email: current_user.email,
photo_url: current_user.photo_url,
show_free_jamtrack: current_user.show_free_jamtrack?,
+ is_affiliate_partner: current_user.affiliate_partner.present?,
}, status: 200
end