Skip to content

Commit

Permalink
Merge pull request Expensify#38973 from Expensify/quick-actions-crash
Browse files Browse the repository at this point in the history
Check quickAction.action is set before trying to display in popover
  • Loading branch information
rafecolton authored Mar 26, 2024
2 parents c8c6d9b + 76264c1 commit c5f1a97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export default {
recordDistance: 'Record Distance',
requestMoney: 'Request Money',
splitBill: 'Split Bill',
splitReceipt: 'Split Receipt',
splitScan: 'Split Receipt',
splitDistance: 'Split Distance',
sendMoney: 'Send Money',
assignTask: 'Assign Task',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ export default {
recordDistance: 'Grabar Distancia',
requestMoney: 'Solicitar Dinero',
splitBill: 'Dividir Cuenta',
splitReceipt: 'Dividir Recibo',
splitScan: 'Dividir Recibo',
splitDistance: 'Dividir Distancia',
sendMoney: 'Enviar Dinero',
assignTask: 'Assignar Tarea',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ const getQuickActionTitle = (action) => {
case CONST.QUICK_ACTIONS.SPLIT_MANUAL:
return 'quickAction.splitBill';
case CONST.QUICK_ACTIONS.SPLIT_SCAN:
return 'quickAction.splitReceipt';
case CONST.QUICK_ACTIONS.SPLIT_DISTANCE:
return 'quickAction.splitScan';
case CONST.QUICK_ACTIONS.SPLIT_DISTANCE:
return 'quickAction.splitDistance';
case CONST.QUICK_ACTIONS.SEND_MONEY:
return 'quickAction.sendMoney';
case CONST.QUICK_ACTIONS.ASSIGN_TASK:
Expand Down Expand Up @@ -335,7 +335,7 @@ function FloatingActionButtonAndPopover(props) {
},
]
: []),
...(props.quickAction
...(props.quickAction && props.quickAction.action
? [
{
icon: getQuickActionIcon(props.quickAction.action),
Expand Down

0 comments on commit c5f1a97

Please sign in to comment.