Skip to content

Commit

Permalink
Fix Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nephelite committed Jan 22, 2025
1 parent 7801d02 commit 0a0f4ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions multi-git-dashboard/src/components/cards/SubmissionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ const SubmissionCard: React.FC<SubmissionCardProps> = ({
<Text size="sm">
{submission.adjustedScore ? (
<>
<strong>Adjusted Score:</strong> {totalScore.toPrecision(2)} <br />
<strong>Original Score:</strong> {originalScore.toPrecision(2)}
<strong>Adjusted Score:</strong> {totalScore.toPrecision(2)}{' '}
<br />
<strong>Original Score:</strong>{' '}
{originalScore.toPrecision(2)}
</>
) : (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ function downloadExistingQuestionsCsv(questions: Question[]) {
});

// Remove linebreaks; join columns with commas
rows.push(rowValues.map(val => String(val).replace(/\r?\n|\r/g, ' ')).join(','));
rows.push(
rowValues.map(val => String(val).replace(/\r?\n|\r/g, ' ')).join(',')
);
});

const csvString = rows.join('\n');
Expand Down

0 comments on commit 0a0f4ae

Please sign in to comment.