1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix menu translations

This commit is contained in:
xmflsct
2022-08-08 23:00:46 +02:00
parent 6b6481f9ac
commit a68ed6ea1b
4 changed files with 11 additions and 12 deletions

View File

@ -41,8 +41,8 @@ const contextMenuAccount = ({
type: 'success',
message: t('common:message.success.message', {
function: t(`account.${theParams.payload.property}.action`, {
...(typeof theParams.payload.currentValue === 'boolean' && {
context: theParams.payload.currentValue.toString()
...(theParams.payload.property !== 'reports' && {
context: (theParams.payload.currentValue || false).toString()
})
})
})
@ -55,8 +55,8 @@ const contextMenuAccount = ({
type: 'error',
message: t('common:message.error.message', {
function: t(`account.${theParams.payload.property}.action`, {
...(typeof theParams.payload.currentValue === 'boolean' && {
context: theParams.payload.currentValue.toString()
...(theParams.payload.property !== 'reports' && {
context: (theParams.payload.currentValue || false).toString()
})
})
}),