Fix: array concat

This commit is contained in:
Sidharth Vinod
2022-11-23 13:39:15 +05:30
parent 7f4368415d
commit ed6fb15c38

View File

@@ -219,7 +219,8 @@ export const addNote = function (actor, placement, message) {
};
// Coerce actor into a [to, from, ...] array
const actors = [actor, actor];
// eslint-disable-next-line unicorn/prefer-spread
const actors = [].concat(actor, actor);
notes.push(note);
messages.push({