Skip to content

Commit

Permalink
fix: fix issues when type_name in results had wrong casing
Browse files Browse the repository at this point in the history
  • Loading branch information
thebravyone committed Jan 28, 2025
1 parent d69f43f commit ccc0279
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ export function lookup(typeName: string): LookupResult {
);

if (index === -1) {
return {};
return {
type_name: undefined,
type_id: undefined,
type_volume: undefined,
};
}

return {
type_name: typeName,
type_name: lookupTable.type_name[index],
type_id: lookupTable.type_id[index],
type_volume: lookupTable.type_volume[index],
};
Expand Down

0 comments on commit ccc0279

Please sign in to comment.