Skip to content

Commit

Permalink
🐛 Fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
7rebux committed Jun 28, 2023
1 parent 38ebb34 commit 5912318
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/components/LcuContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ export const LcuContext = ({ children }: { children: ReactNode }) => {
}));
});

request('GET', '/lol-store/v1/wallet').then((response: any) => {
request('GET', '/lol-inventory/v1/wallet?currencyTypes=["lol_blue_essence","RP"]').then((response: any) => {
setState((oldState) => ({
...oldState,
wallet: {
riotPoints: response.rp ?? 0,
blueEssence: response.ip ?? 0,
riotPoints: response.RP ?? 0,
blueEssence: response.lol_blue_essence ?? 0,
},
}));
});
Expand Down Expand Up @@ -250,7 +250,7 @@ export const LcuContext = ({ children }: { children: ReactNode }) => {
}));
break;
}
case '/lol-store/v1/wallet': {
case '/lol-inventory/v1/wallet': {
setState((oldState) => ({
...oldState,
wallet: {
Expand Down

0 comments on commit 5912318

Please sign in to comment.