Skip to content

Commit

Permalink
add has diff bool
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Aug 14, 2024
1 parent af8f91f commit ecb94b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seeder/src/renderer/routes/staff/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Staff: Component = () => {
about: diffLines(staff_db.about, staff_mal.about),
};

const hasDiff = Object.values(diff).some((field) => field.some((part: Change) => part.added || part.removed))

const renderDiff = (field: string, type: "old" | "new") => {
return (
<div class="flex flex-col gap-1">
Expand Down

0 comments on commit ecb94b9

Please sign in to comment.