Skip to content

Commit

Permalink
Fix: Wrong Variable Type On POS
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 committed Nov 17, 2021
1 parent 1722dd0 commit b0f678d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Dashboard/OrdersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function showPOS()
return $this->view( 'pages.dashboard.orders.pos', [
'title' => __( 'POS — NexoPOS' ),
'orderTypes' => collect( config( 'nexopos.orders.types' ) )->filter( function( $type, $label ) {
return in_array( $label, ns()->option->get( 'ns_pos_order_types' ) );
return in_array( $label, ns()->option->get( 'ns_pos_order_types' ) ?: [] );
}),
'options' => Hook::filter( 'ns-pos-options', [
'ns_pos_printing_document' => ns()->option->get( 'ns_pos_printing_document', 'receipt' ),
Expand Down
2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/js/vendor.js

Large diffs are not rendered by default.

0 comments on commit b0f678d

Please sign in to comment.