Skip to content

Commit

Permalink
refactor: getCreditBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
akastercomcom committed Sep 20, 2023
1 parent b32fbfa commit 007ee79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/modelController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class ModelController {
this.isLoggedIn();
const userAddress = this.ain.getAddress();
const balancePath = Path.app(modelName).balanceOfUser(userAddress);
return await this.ain.getValue(balancePath);
return await this.ain.getValue(balancePath) | 0;
}

async getCreditHistory(modelName: string) {
Expand Down

0 comments on commit 007ee79

Please sign in to comment.