kyd-shared-badge 0.3.19 → 0.3.20

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": "kyd-shared-badge",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -299,9 +299,11 @@ const AppendixTables: React.FC<AppendixTableProps> = ({ type, sources, searchedA
299
299
  <td className={'px-4 py-4 whitespace-normal text-sm'} style={{ color: 'var(--text-secondary)' }}>{br.category || '—'}</td>
300
300
  <td className={'px-4 py-4 whitespace-normal text-sm font-medium'} style={{ color: 'var(--text-main)' }}>{br.label || '—'}</td>
301
301
  <td className={'px-4 py-4 whitespace-normal text-sm'} style={{ color: 'var(--text-secondary)' }}>{(() => {
302
- const weight = Number(br.weight || 0);
303
- if (!Number.isFinite(weight)) return '';
304
- return weight.toFixed(3).replace(/\.000$/, '.0');
302
+ const weight = Number(br.weight);
303
+ if (!Number.isFinite(weight)) return 'Neutral';
304
+ if (weight > 0) return 'Positive';
305
+ if (weight < 0) return 'Negative';
306
+ return 'Neutral';
305
307
  })()}</td>
306
308
  </tr>
307
309
  );