@@ 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