Skip to content

Commit

Permalink
fix: Subheadings should now properly stringify arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Sep 6, 2024
1 parent 9a27da8 commit 5c3da30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/ui/Subheading.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { Monster } from "index";
import type { SubHeadingItem } from "src/layouts/layout.types";
import { stringify } from "src/util/util";
import { stringify } from "../../util/util";
import TextContent from "./TextContent.svelte";
export let monster: Monster;
Expand All @@ -10,7 +10,7 @@
for (let property of item.properties) {
if (property in monster) {
subheading.push(`${stringify(monster[property])}`);
subheading.push(`${stringify(monster[property], 0, ", ", false)}`);
}
}
</script>
Expand Down

0 comments on commit 5c3da30

Please sign in to comment.