(localCurrency: SupportedLocalCurrency, skip?: boolean)
| 16 | ` |
| 17 | |
| 18 | export function useLocalCurrencyConversionRate(localCurrency: SupportedLocalCurrency, skip?: boolean) { |
| 19 | const { data, loading } = useConvertQuery({ |
| 20 | variables: { toCurrency: localCurrency }, |
| 21 | fetchPolicy: getFetchPolicyForKey(`convert-${localCurrency}`, ms('5m')), |
| 22 | skip, |
| 23 | }) |
| 24 | |
| 25 | return { |
| 26 | data: data?.convert?.value, |
| 27 | isLoading: loading, |
| 28 | } |
| 29 | } |
no test coverage detected
searching dependent graphs…