Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 944be5f

Browse files
committed
- Fix extra separation
1 parent e22dc77 commit 944be5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/js/Pages/Map/Index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ export default {
367367
attributes.push('on foot');
368368
markers[id].options.forceZIndex = 101;
369369
}
370-
extra += '<br><i>Is ' + attributes.shift() + (attributes.length > 0 ? ' and ' + attributes.join(', ') : '') + '</i>';
370+
const lastExtra = attributes.pop();
371+
extra += '<br><i>Is ' + (attributes.length > 0 ? attributes.join(', ') + ' and ' : '') + lastExtra + '</i>';
371372
372373
if (player.afk > 300) {
373374
extra += '<br><i>Hasn\'t moved in ' + _this.formatSeconds(player.afk) + '</i>';

0 commit comments

Comments
 (0)