fix: toStoreItem not converting boosters (#2147)
Bug reported via #2146 Reviewed-on: #2147 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
4823406229
commit
1d813a1b1b
@ -233,7 +233,7 @@ export const isStoreItem = (type: string): boolean => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const toStoreItem = (type: string): string => {
|
export const toStoreItem = (type: string): string => {
|
||||||
if (type.startsWith("/Lotus/Types/StoreItems/Boosters/")) {
|
if (type.startsWith("/Lotus/Types/Boosters/")) {
|
||||||
const boosterEntry = Object.entries(ExportBoosters).find(arr => arr[1].typeName == type);
|
const boosterEntry = Object.entries(ExportBoosters).find(arr => arr[1].typeName == type);
|
||||||
if (boosterEntry) {
|
if (boosterEntry) {
|
||||||
return boosterEntry[0];
|
return boosterEntry[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user