@rpg-engine/long-bow 0.6.71 → 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.71",
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
- import 'react-tippy/dist/tippy.css';
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(
@@ -150,7 +149,6 @@ const getStatusColor = (status?: QuestStatus) => {
150
149
  }
151
150
  };
152
151
 
153
- // Styled components
154
152
  const QuestListContainer = styled.div`
155
153
  margin-top: 20px;
156
154
  margin-bottom: 40px;