Skip to content

Commit

Permalink
fix: get weight values before setting unique weights
Browse files Browse the repository at this point in the history
  • Loading branch information
Esthefanie Vila Maior committed Jan 30, 2024
1 parent 731d377 commit fdc238b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/yoga/src/Theme/Provider/web/FontLoader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const FontLoader = ({
},
},
}) => {
const uniqueWeights = [...new Set(weight)];
const weightValues = Object.values(weight);

const uniqueWeights = [...new Set(weightValues)];

return (
<>
Expand Down

0 comments on commit fdc238b

Please sign in to comment.