Skip to content

Commit

Permalink
chore: remove default value for p2p exchange rate (binary-com#14988)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameerul-deriv committed Jun 6, 2024
1 parent 8dd7f0c commit 29562a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/useP2PExchangeRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const useP2PExchangeRate = (local_currency: string) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [local_currency]);

const exchange_rate = exchange_rates?.USD?.[local_currency] ?? 1;
const exchange_rate = exchange_rates?.USD?.[local_currency];

return exchange_rate;
};
Expand Down

0 comments on commit 29562a7

Please sign in to comment.