~singpolyma/sgx-jmp

1148e5646b7bf18ef8304924874eaf2be99cfbf9 — Stephen Paul Weber 3 years ago 8965c1b
Signup should work if rate center lookup fails
1 files changed, 4 insertions(+), 3 deletions(-)

M lib/registration.rb
M lib/registration.rb => lib/registration.rb +4 -3
@@ 116,8 116,9 @@ class Registration
			"contact support.)"

		def add_instructions(form, center)
			center = " (#{center})" if center
			[
				"You've selected #{tel} (#{center}) as your JMP number",
				"You've selected #{tel}#{center} as your JMP number",
				ACTIVATE_INSTRUCTION,
				CRYPTOCURRENCY_INSTRUCTION
			].each do |txt|


@@ 144,10 145,10 @@ class Registration
	protected

		def rate_center
			EM.promise_fiber do
			EM.promise_fiber {
				center = BandwidthIris::Tn.get(tel).get_rate_center
				"#{center[:rate_center]}, #{center[:state]}"
			end
			}.catch { nil }
		end
	end