Skip to content

Commit

Permalink
Check for empty string for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge authored May 14, 2024
1 parent c226c75 commit 3cf04e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/stendhal/ui/dialog/TravelLogDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class TravelLogDialog extends DialogContentComponent {
if (progressType !== this.currentProgressType) {
return;
}
if (dataItems.length == 1 && !dataItems[0]) {
if (dataItems.length == 1 && dataItems[0] === "") {
// prevent infinitely re-sending request when list is technically empty
dataItems = [];
}
Expand Down

0 comments on commit 3cf04e9

Please sign in to comment.