Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDsza committed Nov 10, 2024
1 parent cd9dd1a commit 42ed0b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/__mocks__/@dicebear/core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const createAvatar = jest.fn(() => {
return {
toDataUri: jest.fn(() => 'mocked-data-uri'),
toDataUriSync: jest.fn(() => 'mocked-data-uri'),
};
});
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Avatar = ({
size: size || 128,
seed: name,
radius: radius || 0,
}).toDataUri();
}).toDataUriSync();
}, [name, size]);

const svg = avatar?.toString();
Expand Down

0 comments on commit 42ed0b2

Please sign in to comment.