Skip to content

Commit

Permalink
fix(sdk): implementing formatted cost string
Browse files Browse the repository at this point in the history
  • Loading branch information
rallieon committed Mar 25, 2022
1 parent a839e3a commit 05bdc6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/models/src/models/leaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export class Leaderboard {
id: string;
name: string;
cost: number;
formattedCostString: string;
currency: string;
leaders?: Leader[];
formattedName: string;
Expand All @@ -14,5 +15,6 @@ export class Leaderboard {
this.cost = 0;
this.currency = '';
this.formattedName = '';
this.formattedCostString = '';
}
}
2 changes: 1 addition & 1 deletion packages/server/src/api/haste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Haste {
public static async validatePlayerAccess(playerAccessToken: string, authUrl = 'auth.hastearcade.com') {
if (isBrowser())
throw new Error(
`Validate player access may only be called from a server environment. Do not use in browser please.`,
`Validate player access may only be called from a server environment. Please do not use in browser please.`,
);
const jwt = await validateAuthenticationToken(playerAccessToken, authUrl);
const playerId = jwt['https://hastearcade.com/playerId'] as string;
Expand Down

0 comments on commit 05bdc6b

Please sign in to comment.