Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywiebe committed Apr 29, 2024
1 parent 15d2a8b commit 9f6f738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/flipbook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ grep -rl '"type":"segment"' data/questions/ | xargs cat | pbcopy

const LS_QUESTIONS_KEY = "FLIPBOOK-QUESTIONS-JSON";

function interactiveGraphPredicate(
function isInteractiveGraph(
widget: PerseusWidget,
): widget is InteractiveGraphWidget {
return widget.type === "interactive-graph";
Expand All @@ -85,7 +85,7 @@ export function Flipbook() {
const graphieImageUrls = useMemo<ReadonlyArray<string>>(
() =>
Object.values(question?.widgets ?? {})
.filter(interactiveGraphPredicate)
.filter(isInteractiveGraph)
.map((w) => w.options.backgroundImage?.url ?? "")
.filter((url) => url.length > 0),
[question],
Expand Down

0 comments on commit 9f6f738

Please sign in to comment.