From 2f7f2ae4a57b643dcf02d67c065fd344b7c0b299 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 18 Jan 2025 14:15:56 +0100 Subject: [PATCH] just in case --- src/controllers/api/rerollRandomModController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/rerollRandomModController.ts b/src/controllers/api/rerollRandomModController.ts index 88b14ab1..d7eee8e8 100644 --- a/src/controllers/api/rerollRandomModController.ts +++ b/src/controllers/api/rerollRandomModController.ts @@ -41,7 +41,7 @@ export const rerollRandomModController: RequestHandler = async (req, res) => { }); } else { const upgrade = inventory.Upgrades.find(x => x._id?.toString() == request.ItemId)!; - if (request.CommitReroll) { + if (request.CommitReroll && upgrade.PendingRerollFingerprint) { upgrade.UpgradeFingerprint = upgrade.PendingRerollFingerprint; } upgrade.PendingRerollFingerprint = undefined;