You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* which tab is the leader, and which ones are the followers */
28
29
ACTIVE_CLIENTS: 'activeClients',
29
30
31
+
/** Contains the default rate and unit to use for P2P distance expenses, based on the user's personal policy outputCurrency (default / report currency). */
// This module is used to load the default P2P mileage rate for a user based on their personal policy outputCurrency (default / reporting currency).
2
+
// Whenever a user starts the "Track distance" flow the getDefaultP2PMileageRate action will fetch the rate and unit from the hard coded mapping stored in Auth
3
+
// (CURRENCY_TO_DEFAULT_MILEAGE_RATE), via the API read command GetDefaultP2PMileageRate.
4
+
// The rate will be stored in Onyx and loaded into a variable here via Onyx.connectWithoutView. Normally useOnyx should be used instead, but because
5
+
// the default P2P mileage rate is used across many library functions an exception is allowed to prevent having to pass the value through many functions
6
+
// across the codebase.
7
+
// DO NOT use this pattern for other Onyx data unless you get authorization from the internal Expensify team in Slack.
0 commit comments