Skip to content

Commit a79cc55

Browse files
committed
Make getScalePosition sync
1 parent 03156de commit a79cc55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const getScalePosition = async ({
1+
export const getScalePosition = ({
22
entries,
33
key,
44
position,
@@ -11,7 +11,7 @@ export const getScalePosition = async ({
1111
}[];
1212
key: string;
1313
position: number;
14-
}): Promise<number> => {
14+
}): number => {
1515
// Firstly, sort entries by position
1616
entries = entries.sort((a, b) => a.position - b.position);
1717

0 commit comments

Comments
 (0)