Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
fix: types and explicit <tr>
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo authored Sep 7, 2023
1 parent 9b0dfdd commit 746bde8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/handlers/comment/handlers/assign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export const assign = async (body: string) => {
await addAssignees(issue.number, [payload.sender.login]);
}

let days: Number;
let staleToDays: Number;
let days: number | undefined;
let staleToDays: number | undefined;
let isBountyStale = false;

if (staleBounty !== 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/comment/handlers/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const tableComment = ({
<table>
${
isBountyStale
? `<td>Warning!</td> <td>This task was created over ${days} days ago. Please confirm that this issue specification is accurate before starting.</td>`
? `<tr><td>Warning!</td> <td>This task was created over ${days} days ago. Please confirm that this issue specification is accurate before starting.</td></tr>`
: ``
}
<tr>
Expand Down

0 comments on commit 746bde8

Please sign in to comment.