返回提交历史
Modified
src/services/questService.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
fix: conditional in giveKeyChainItem (#2804)
Using safe navigation now and inverted the condition because i would be false when we have to give items, not true. Closes #2803 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2804 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
32c95b67
代码差异
1 个文件
+1
-1
@@ -302,7 +302,7 @@ export const giveKeyChainItem = async (
302
302
): Promise<IInventoryChanges> => {
303
303
let inventoryChanges: IInventoryChanges = {};
304
304
305
if (questKey.Progress![keyChainInfo.ChainStage].i) {
305
if (!questKey.Progress?.[keyChainInfo.ChainStage]?.i) {
306
306
inventoryChanges = await addKeyChainItems(inventory, keyChainInfo);
307
307
308
308
if (isEmptyObject(inventoryChanges)) {