Fix legacy picks

6a5828f2c78741abe723805143aa0dc607171df0

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
public/scripts/macros.js+2 -1
@@ -359,7 +359,8 @@ function pickReplace(input, rawContent, emptyListPlaceholder = '') {
359359 // We build a hash seed based on: unique chat file, raw content, and the placement inside this content
360360 // This allows us to get unique but repeatable picks in nearly all cases
361361 const combinedSeedString = `${chatIdHash}-${rawContentHash}-${offset}`;
362362 const finalSeed = getStringHash(combinedSeedString).toString();
363+ // @ts-ignore - have to use numbers for legacy picks
363364 const rng = seedrandom(finalSeed);
364365 const randomIndex = Math.floor(rng() * list.length);
365366 return list[randomIndex];