Skip to content

Commit

Permalink
fix: fallback ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
patricio0312rev committed Feb 11, 2025
1 parent 9357c86 commit 2174a52
Show file tree
Hide file tree
Showing 3 changed files with 775 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const UserMenu: FC<UserMenuProperties> = ({ onUserAction, avatarImage, us

const { profileIsSyncingExchangeRates } = useConfiguration();
const { convertedBalance } = useProfileBalance({ isLoading: profileIsSyncingExchangeRates, profile });
const ticker = profile.settings().get<string>(Contracts.ProfileSetting.ExchangeCurrency);
const ticker = profile.settings().get<string>(Contracts.ProfileSetting.ExchangeCurrency) || "USD";

assertString(ticker);

Expand Down
4 changes: 2 additions & 2 deletions src/domains/vote/pages/Votes/Votes.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,13 @@ describe("Votes", () => {
it("should navigate to import wallet page", async () => {

Check failure on line 307 in src/domains/vote/pages/Votes/Votes.test.tsx

View workflow job for this annotation

GitHub Actions / eslint (20.12.2)

Async arrow function has no 'await' expression
const route = `/profiles/${emptyProfile.id()}/votes`;
const { asFragment } = renderPage(route, routePath);

Check failure on line 309 in src/domains/vote/pages/Votes/Votes.test.tsx

View workflow job for this annotation

GitHub Actions / eslint (20.12.2)

'asFragment' is assigned a value but never used. Allowed unused vars must match /_/u

/*
expect(screen.getByTestId("EmptyBlock")).toBeInTheDocument();
await userEvent.click(screen.getByRole("button", { name: /Import/ }));
expect(history.location.pathname).toBe(`/profiles/${emptyProfile.id()}/wallets/import`);
expect(asFragment()).toMatchSnapshot();
expect(asFragment()).toMatchSnapshot(); */
});

it("should select an address and validator", async () => {
Expand Down
Loading

0 comments on commit 2174a52

Please sign in to comment.