~singpolyma/sgx-jmp

1ff131076774853bf3253b6ee75d5d0a4bfd6d7e — Stephen Paul Weber 8 months ago 27b2711
Search again if no tel selected
1 files changed, 3 insertions(+), 2 deletions(-)

M lib/tel_selections.rb
M lib/tel_selections.rb => lib/tel_selections.rb +3 -2
@@ 55,9 55,10 @@ class TelSelections
				reply.allowed_actions = [:next, :prev]
				reply.command << FormTemplate.render("tn_list", tns: tns)
			}.then { |iq|
				next choose_tel if iq.prev?
				tel = iq.form.field("tel")&.value
				next choose_tel if iq.prev? || !tel

				iq.form.field("tel").value.to_s.strip
				tel.to_s.strip
			}
		end