Fix chromatic build

This commit is contained in:
Charles Bochet 2023-11-04 10:35:45 +01:00
parent 53072298bc
commit d17978777e
2 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@ const meta: Meta<PageDecoratorArgs> = {
export default meta;
const sortedCompanyNames = mockedCompaniesData
const sortedCompanyNames = [...mockedCompaniesData]
.map(({ name }) => name)
.toSorted();
.sort((a, b) => a.localeCompare(b));
export const SortByName: Story = {
play: async ({ canvasElement, step }) => {

View File

@ -28,7 +28,7 @@ const meta: Meta<PageDecoratorArgs> = {
export default meta;
const peopleEmails = mockedPeopleData.map(({ email }) => email);
const sortedPeopleEmails = peopleEmails.toSorted();
const sortedPeopleEmails = [...peopleEmails].sort((a, b) => a.localeCompare(b));
export const Email: Story = {
play: async ({ canvasElement, step }) => {