Skip to content

Commit

Permalink
less plurals!
Browse files Browse the repository at this point in the history
  • Loading branch information
alextaing committed Oct 26, 2023
1 parent e5543bc commit cf7c3be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/studio-ui/src/hooks/useInjectActiveStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { StudioStore } from "../store/models/StudioStore";
export default function useInjectActiveStyles(
iframeDocument: Document | undefined
) {
const [activeStylesFilepaths, loadedStyleFilepaths] = useStudioStore(
const [activeStyleFilepaths, loadedStyleFilepaths] = useStudioStore(
(store) => [
getFilepathsOfActiveStyles(store),
store.loadedStyles.loadedStyleFilepaths,
Expand All @@ -25,7 +25,7 @@ export default function useInjectActiveStyles(
if (!iframeDocument) {
return;
}
activeStylesFilepaths.forEach((styleFilepath) => {
activeStyleFilepaths.forEach((styleFilepath) => {
injectStyleIntoIframe(iframeDocument, styleFilepath);
});

Expand All @@ -39,7 +39,7 @@ export default function useInjectActiveStyles(
* called before all user styles are added to Studio's
* document head.
*/
}, [iframeDocument, activeStylesFilepaths, loadedStyleFilepaths]);
}, [iframeDocument, activeStyleFilepaths, loadedStyleFilepaths]);
}

function getFilepathsOfActiveStyles(store: StudioStore): string[] {
Expand Down

0 comments on commit cf7c3be

Please sign in to comment.