Skip to content

Commit d2e470f

Browse files
Update modules/auxiliary/admin/printer/escpos_tcp_command_injector.rb
Co-authored-by: msutovsky-r7 <[email protected]>
1 parent 046c133 commit d2e470f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/printer/escpos_tcp_command_injector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def initialize(info = {})
4747

4848
def run
4949
# Check if a message was provided by the user
50-
should_print_message = !datastore['MESSAGE'].to_s.empty?
50+
should_print_message = !datastore['MESSAGE'].blank?
5151

5252
# Retrieve other options
5353
trigger_drawer = datastore['TRIGGER_DRAWER']

0 commit comments

Comments
 (0)