@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.6.72",
3
+ "version": "0.6.73",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,13 +1,11 @@
1
- import React from 'react';
2
-
3
- import styled from 'styled-components';
4
-
5
1
  import {
6
2
  IQuest,
7
3
  IQuestObjectiveInteraction,
8
4
  IQuestObjectiveKill,
9
5
  QuestStatus,
10
6
  } from '@rpg-engine/shared';
7
+ import React from 'react';
8
+ import styled from 'styled-components';
11
9
  import { uiColors } from '../constants/uiColors';
12
10
  import { Table, TableCell, TableHeader, TableRow } from './Table/Table';
13
11
  import { Ellipsis } from './shared/Ellipsis';
@@ -115,8 +113,9 @@ const formatObjectives = (
115
113
  .join('; ');
116
114
  };
117
115
 
118
- // Other helper functions remain the same
116
+ // Updated helper function to format rewards
119
117
  const formatRewards = (rewards: IQuest['rewards']) => {
118
+ if (!rewards) return 'No rewards';
120
119
  return rewards
121
120
  .map(reward => {
122
121
  return `${formatText(