Skip to content

Commit

Permalink
Fixed Print
Browse files Browse the repository at this point in the history
  • Loading branch information
coinmoles committed Dec 1, 2023
1 parent f1e257c commit f6bed5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/utils/createString/createMissionPrintString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { isDefaultCategory } from "./createMissionString.js"

const createMissionPrintString = (mission: Mission, targetId: string) =>
`- ${mission.content} [${mission.score}점]\n` + (mission.note !== "" ? `\n - ${mission.note}` : "")
`- ${mission.content} \\[${mission.score}점\\]` + (mission.completed.includes(targetId) ? " (완료)" : "") +
(mission.note !== "" ? `\n - ${mission.note}` : "")

export const createMissionMapPrintString = (missionMap: Map<string, Mission[]>, targetId: string) => missionMap.size > 0 ?
Array.from(missionMap)
Expand Down

0 comments on commit f6bed5f

Please sign in to comment.