Skip to content

Commit

Permalink
CORE-229: workflow costs should format as currency (#5233)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidangb authored Jan 24, 2025
1 parent 7679b0d commit 9542603
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const SubmissionWorkflowsTable = ({ workspace, submission }) => {
headerRenderer: () => h(Sortable, { sort, field: 'cost', onSort: setSort }, ['Run Cost']),
cellRenderer: ({ rowIndex }) => {
const cost = filteredWorkflows[rowIndex].cost;
return cost instanceof String ? h(TextCell, [Utils.formatUSD(cost || 0)]) : cost;
return typeof cost === 'number' ? h(TextCell, [Utils.formatUSD(cost || 0)]) : cost;
},
},
{
Expand Down

0 comments on commit 9542603

Please sign in to comment.