Skip to content

Commit

Permalink
fix: allow fiscal host to disable requried fields (#10674)
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz authored Feb 7, 2025
1 parent e05403f commit bc81a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/graphql/v2/object/Policies.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GraphQLBoolean, GraphQLInt, GraphQLObjectType, GraphQLString } from 'graphql';
import { get, isEmpty, isNil, mapValues } from 'lodash';
import { get, isNil, mapValues } from 'lodash';

import POLICIES, { Policies } from '../../../constants/policies';
import { VirtualCardLimitIntervals } from '../../../constants/virtual-cards';
Expand Down Expand Up @@ -156,7 +156,7 @@ export const GraphQLPolicies = new GraphQLObjectType({
: account;
let thresholds = await getPolicy(host, POLICIES.CONTRIBUTOR_INFO_THRESHOLDS, req);
let fxRate = 1;
if (!thresholds || isEmpty(thresholds)) {
if (!thresholds) {
fxRate = await getFxRate('USD', account.currency);
thresholds = DEFAULT_USD_THRESHOLDS;
} else if (host.currency !== account.currency) {
Expand Down

0 comments on commit bc81a68

Please sign in to comment.