Skip to content

Commit

Permalink
fix(app): fix broken test and add margin instead of nbsp
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz committed Jan 20, 2023
1 parent 919b698 commit cfc89f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/__tests__/pages/Dashboard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ describe("when a user clicks on the Passport logo", () => {

expect(
screen.getByText(
"We’re making some repairs. Your Passport will be locked before continuing. This may take up to 5 minutes."
"We have detected some broken stamps in your passport. Your passport is currently locked because of this. We need to fix these errors before you continue using Passport. This might take up to 5 minutes."
)
).toBeInTheDocument();
});
Expand Down
5 changes: 3 additions & 2 deletions app/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ export default function Dashboard() {
{ceramicErrors && ceramicErrors.error && (
<Banner>
<div className="flex w-full justify-center">
We have detected some broken stamps in your passport. Your passport is currently locked because of this. We need to fix these errors before you continue using Passport. This might take up to 5 minutes.
We have detected some broken stamps in your passport. Your passport is currently locked because of this. We
need to fix these errors before you continue using Passport. This might take up to 5 minutes.
<button className="ml-2 flex underline" onClick={() => setRefreshModal(true)}>
Reset Passport &nbsp;<img className="w-6" src="./assets/arrow-right-icon.svg" alt="arrow-right"></img>
Reset Passport <img className="ml-1 w-6" src="./assets/arrow-right-icon.svg" alt="arrow-right"></img>
</button>
</div>
</Banner>
Expand Down

0 comments on commit cfc89f6

Please sign in to comment.