Skip to content

Commit

Permalink
fix: using nickname field instead of nullable title field (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
narawit-tub authored Sep 26, 2024
1 parent 6b4ccb6 commit 1e65485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/assemblies/[id]/votes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{filteredData}
tableHeader={[
{ key: 'date', value: 'วันที่' },
{ key: 'title', value: 'ชื่อมติ' },
{ key: 'nickname', value: 'ชื่อมติ' },
{ key: 'result', value: 'ผลลัพท์' },
{ key: 'files', value: 'เอกสาร' }
]}
Expand All @@ -67,7 +67,7 @@
year: '2-digit'
})}</span
>
{:else if cellKey === 'title'}
{:else if cellKey === 'nickname'}
<a href="/votings/{row.id}" class="body-01 text-gray-100 underline">{cellValue}</a>
{:else if cellKey === 'result'}
<VotingResultTag class="m-0 whitespace-nowrap" result={cellValue} />
Expand Down

0 comments on commit 1e65485

Please sign in to comment.