Change column type to string and add value formatter

This commit is contained in:
lora322 2025-09-23 15:50:39 -04:00 committed by GitHub
parent 1b6cc3fd83
commit d0b8ed3955
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,16 @@ export const loadColumns = async (
editable: hasUpdatePermission,
type: 'number',
type: 'string',
valueFormatter: ({ value }) =>
value != null
? Number(value).toLocaleString('en-US', {
style: 'currency',
currency: 'CAD',
minimumFractionDigits: 2,
maximumFractionDigits: 2,
})
: '',
},
{