Skip to content

Commit

Permalink
Improved: Changed check condition for searchedQuery in the error mess…
Browse files Browse the repository at this point in the history
…age generation function to handle different cases(#673)
  • Loading branch information
R-Sourabh committed Nov 20, 2024
1 parent 4e213ec commit 883e71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/TransferOrders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default defineComponent({
},
methods: {
getErrorMessage() {
if(this.searchedQuery === '') {
if(!this.searchedQuery) {
return this.hasCompletedTransferOrders ? translate("doesn't have any open transfer orders right now.", { facilityName: this.currentFacility.facilityName }) : translate("doesn't have any transfer orders right now.", { facilityName: this.currentFacility.facilityName });
} else {
return translate("No results found for .", { searchedQuery: this.searchedQuery });
Expand Down

0 comments on commit 883e71f

Please sign in to comment.