Skip to content

Commit

Permalink
cent implement
Browse files Browse the repository at this point in the history
  • Loading branch information
LucSPI committed May 21, 2023
1 parent b5ddb4c commit a16f040
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/UI/Table/TableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,17 @@ export const TableCell = <T, K extends keyof T>({ data, column }: TableCellProps
</p>
)
case 'bet_amount':
const value = data[column.key] as number;
console.warn(value);
return(
<p>$ {data[column.key] as any}</p>
<p>
{
0 < value && value < 1 ?
'¢' + value*100
:
'$' + value
}
</p>
)
case 'participants':
return(
Expand Down

0 comments on commit a16f040

Please sign in to comment.