@rpg-engine/long-bow 0.6.72 → 0.6.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { IQuest } from '@rpg-engine/shared';
2
+ import React from 'react';
3
3
  export interface IQuestListProps {
4
4
  quests?: IQuest[];
5
5
  }
@@ -32124,8 +32124,9 @@ var formatObjectives = function formatObjectives(objectives) {
32124
32124
  }
32125
32125
  }).join('; ');
32126
32126
  };
32127
- // Other helper functions remain the same
32127
+ // Updated helper function to format rewards
32128
32128
  var formatRewards = function formatRewards(rewards) {
32129
+ if (!rewards) return 'No rewards';
32129
32130
  return rewards.map(function (reward) {
32130
32131
  return "" + formatText(reward.itemKeys.map(function (itemKey) {
32131
32132
  return itemKey + ' x' + reward.qty;