Skip to content

Commit

Permalink
Revert "fix(sdk): implementing formatted cost string"
Browse files Browse the repository at this point in the history
This reverts commit 05bdc6b.
  • Loading branch information
rallieon committed Mar 25, 2022
1 parent 05bdc6b commit 9230cd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/models/src/models/leaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export class Leaderboard {
id: string;
name: string;
cost: number;
formattedCostString: string;
currency: string;
leaders?: Leader[];
formattedName: string;
Expand All @@ -15,6 +14,5 @@ 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. Please do not use in browser please.`,
`Validate player access may only be called from a server environment. 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 9230cd7

Please sign in to comment.