Skip to content

Commit

Permalink
refactor: post re-review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iFergal committed Apr 29, 2024
1 parent 169dad8 commit 2eaa159
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ui/components/CardsStack/CardsStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useRef, useState } from "react";
import { useHistory } from "react-router-dom";
import "./CardsStack.scss";
import {
IdentifierFullDetails,
IdentifierDetails,
IdentifierShortDetails,
} from "../../../core/agent/services/identifier.types";
import { CardType } from "../../globals/types";
Expand Down Expand Up @@ -64,7 +64,7 @@ const CardsStack = ({
let pathname = "";

if (cardsType === CardType.IDENTIFIERS) {
const data = cardsData[index] as IdentifierFullDetails;
const data = cardsData[index] as IdentifierDetails;
pathname = `/tabs/identifiers/${data.id}`;
} else {
const data = cardsData[index] as CredentialShortDetails;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IdentifierFullDetails } from "../../../../core/agent/services/identifierService.types";
import { IdentifierDetails } from "../../../../core/agent/services/identifier.types";

export interface IdentifierJsonModalProps {
cardData: IdentifierFullDetails;
cardData: IdentifierDetails;
isOpen: boolean;
onDissmiss: () => void;
}
4 changes: 2 additions & 2 deletions src/ui/components/VerifyPassword/VerifyPassword.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jest.mock("../../../core/agent/agent", () => ({
credentials: {
getCredentialDetailsById: jest.fn(),
},
basicStorages: {
basicStorage: {
findById: jest.fn(),
},
},
Expand Down Expand Up @@ -321,7 +321,7 @@ describe("Verify Password", () => {
});

test("Render hint button success", async () => {
jest.spyOn(Agent.agent.basicStorages, "findById").mockResolvedValue(
jest.spyOn(Agent.agent.basicStorage, "findById").mockResolvedValue(
Promise.resolve({
content: {
value: "1111",
Expand Down

0 comments on commit 2eaa159

Please sign in to comment.