fix dialog saying error when request was succesful

This commit is contained in:
sbeltranc 2026-02-05 21:43:04 -05:00
parent ceec8c9c2b
commit ce80b47169

View file

@ -80,8 +80,10 @@
)
);
await refreshUserScraps();
alertType = 'info';
alertMessage = `Refunded ${data.refundedCost} scraps`;
} catch (e) {
alertType = 'error';
alertMessage = $t.refinery.failedToUndo || 'Failed to undo upgrade';
} finally {
undoing = null;