Skip to content

Commit 3246d62

Browse files
committed
fix: Patch bignumber to avoid global namespace pollution
Related: MikeMcl/bignumber.js#392
1 parent 9af0bf7 commit 3246d62

5 files changed

Lines changed: 143 additions & 181 deletions

File tree

app/components/presentation/DecimalEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
import React, { useState, useEffect } from 'react';
66
import { TextStyle } from 'react-native';
77
import { TextInput } from 'react-native-paper';
8-
import { BigNumber } from 'bignumber.js';
8+
import BigNumber from 'bignumber.js';
99

1010
interface DecimalEditorProps {
1111
value: BigNumber;

app/components/presentation/weight-format.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export default function WeightFormat(props: WeightFormatProps) {
1919
const weightDisplay =
2020
localeFormatBigNumber(props.weight?.value.decimalPlaces(4)) || '-';
2121
const { colors } = useAppTheme();
22-
2322
return (
2423
<Text
2524
style={{

app/models/blueprint-models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DeepOmit } from '@/utils/deep-omit';
22
import { Duration, LocalDate } from '@js-joda/core';
3-
import { BigNumber } from 'bignumber.js';
3+
import BigNumber from 'bignumber.js';
44
import { match, P } from 'ts-pattern';
55

66
export interface ProgramBlueprintPOJO {

0 commit comments

Comments
 (0)