Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Cannot read property 'sellPrice' of undefined #71

Open
ThunderScripts opened this issue Sep 10, 2020 · 0 comments
Open

Cannot read property 'sellPrice' of undefined #71

ThunderScripts opened this issue Sep 10, 2020 · 0 comments

Comments

@ThunderScripts
Copy link

when I try and see the stats of a player I get this error

TypeError: C:\Users\Administrator\Desktop\skyblock\hjemmeside\views\stats.ejs:596
594|

Joined: <%= calculated.first_join.text %>

595| <div data-tippy-content="Purse Balance: <%= Math.round(calculated.purse).toLocaleString() %> Coins

596| Booster Cookie Sell Price: <%= Math.round(extra.cookie.sellPrice).toLocaleString() %> Coins
597| Booster Cookie USD Price: $2.75" class="additional-stat">Purse: $<%= (calculated.purse / extra.cookie.sellPrice * 2.75).toFixed(2) %>
598| <% if('bank' in calculated){ %>
599| <div data-tippy-content="Bank Balance: <%= Math.round(calculated.bank).toLocaleString() %> Coins

Cannot read property 'sellPrice' of undefined
at eval (C:\Users\Administrator\Desktop\skyblock\hjemmeside\views\stats.ejs:906:50)
at stats (C:\Users\Administrator\Desktop\skyblock\hjemmeside\node_modules\ejs\lib\ejs.js:691:17)
at tryHandleCache (C:\Users\Administrator\Desktop\skyblock\hjemmeside\node_modules\ejs\lib\ejs.js:272:36)
at View.exports.renderFile [as engine] (C:\Users\Administrator\Desktop\skyblock\hjemmeside\node_modules\ejs\lib\ejs.js:489:10)
at View.render (C:\Users\Administrator\Desktop\skyblock\hjemmeside\node_modules\express\lib\view.js:135:8)
at tryRender (C:\Users\Administrator\Desktop\skyblock\hjemmeside\node_modules\express\lib\application.js:640:10)
at Function.render (C:\Users\Administrator\Desktop\skyblock\hjemmeside\node_modules\express\lib\application.js:592:3)
at ServerResponse.render (C:\Users\Administrator\Desktop\skyblock\hjemmeside\node_modules\express\lib\response.js:1012:7)
at C:\Users\Administrator\Desktop\skyblock\hjemmeside\src\app.js:133:17
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant