Skip to content

Commit

Permalink
fix(platforms): remove '90 day' reference from civic error message (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer authored Jan 8, 2024
1 parent bab53c4 commit 0672a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions platforms/src/Civic/Providers/civic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ export class CivicPassProvider implements Provider {
record = { address };
valid = true;
} else {
errors = [
`Your ${CivicPassType[this.passType]} pass${
allPasses.length > 1 ? "es are" : " is"
} expired (older than 90 days).`,
];
errors = [`Your ${CivicPassType[this.passType]} pass${allPasses.length > 1 ? "es are" : " is"} expired.`];
}
} else {
errors = [`You do not have a ${CivicPassType[this.passType]} pass.`];
Expand Down
2 changes: 1 addition & 1 deletion platforms/src/Civic/__tests__/civic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe("Civic Pass Provider", function () {
expect(verifiedPayload).toMatchObject({
valid: false,
record: undefined,
errors: ["Your UNIQUENESS pass is expired (older than 90 days)."],
errors: ["Your UNIQUENESS pass is expired."],
});
});

Expand Down

0 comments on commit 0672a7a

Please sign in to comment.