Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError #121

Closed
Mallingdk opened this issue Oct 2, 2021 · 1 comment
Closed

Uncaught TypeError #121

Mallingdk opened this issue Oct 2, 2021 · 1 comment

Comments

@Mallingdk
Copy link

Maybe this is a bug.
QB.Phone.Data.PlayerData.money.bank.toFixed is not a function (@qb-phone/html/js/bank.js:50

@OfficialRDB
Copy link

OfficialRDB commented Oct 9, 2021

Maybe this is a bug. QB.Phone.Data.PlayerData.money.bank.toFixed is not a function (@qb-phone/html/js/bank.js:50

Try this. Go to line 50 in qb-phone/html/js/bank.js

Replace this:
QB.Phone.Data.PlayerData.money.bank = (QB.Phone.Data.PlayerData.money.bank).toFixed();

With:
var bankAmount = QB.Phone.Data.PlayerData.money.bank;
var amountResult = parseFloat(bankAmount).toFixed();

QB.Phone.Data.PlayerData.money.bank = (amountResult);

@GhzGarage GhzGarage added this to Issues in QBCore Development Oct 11, 2021
QBCore Development automation moved this from Issues to Done Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

3 participants