Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Apr 24, 2024
1 parent afee44d commit c15fd3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/getIconForAction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CONST from '@src/CONST';

const getIconForAction = (actionType: ValueOf<typeof CONST.IOU.TYPE>) => {
switch (actionType) {
case CONST.IOU.TYPE.TRACK_EXPENSE:
case CONST.IOU.TYPE.TRACK:
return Expensicons.Coins;
case CONST.IOU.TYPE.REQUEST:
return Expensicons.Receipt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const getQuickActionIcon = (action: QuickActionName): React.FC<SvgProps> => {
case CONST.QUICK_ACTIONS.TRACK_DISTANCE:
case CONST.QUICK_ACTIONS.TRACK_MANUAL:
case CONST.QUICK_ACTIONS.TRACK_SCAN:
return getIconForAction(CONST.IOU.TYPE.TRACK_EXPENSE);
return getIconForAction(CONST.IOU.TYPE.TRACK);
default:
return Expensicons.MoneyCircle;
}
Expand Down Expand Up @@ -295,7 +295,7 @@ function FloatingActionButtonAndPopover(
...(canUseTrackExpense && selfDMReportID
? [
{
icon: getIconForAction(CONST.IOU.TYPE.TRACK_EXPENSE),
icon: getIconForAction(CONST.IOU.TYPE.TRACK),
text: translate('iou.trackExpense'),
onSelected: () =>
interceptAnonymousUser(() =>
Expand Down

0 comments on commit c15fd3a

Please sign in to comment.