Compare commits
1 Commits
main
...
temp-hide-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d8e4d4cbe |
@ -34,6 +34,7 @@ import { calculateCanAccountTrade } from '@/state/accountCalculators';
|
|||||||
import { getSubaccountBuyingPower, getSubaccountEquity } from '@/state/accountSelectors';
|
import { getSubaccountBuyingPower, getSubaccountEquity } from '@/state/accountSelectors';
|
||||||
import { getTransferInputs } from '@/state/inputsSelectors';
|
import { getTransferInputs } from '@/state/inputsSelectors';
|
||||||
|
|
||||||
|
import { isTruthy } from '@/lib/isTruthy';
|
||||||
import { MustBigNumber } from '@/lib/numbers';
|
import { MustBigNumber } from '@/lib/numbers';
|
||||||
|
|
||||||
import { SlippageEditor } from '../SlippageEditor';
|
import { SlippageEditor } from '../SlippageEditor';
|
||||||
@ -83,7 +84,7 @@ export const DepositButtonAndReceipt = ({
|
|||||||
const { current: buyingPower, postOrder: newBuyingPower } =
|
const { current: buyingPower, postOrder: newBuyingPower } =
|
||||||
useSelector(getSubaccountBuyingPower, shallowEqual) || {};
|
useSelector(getSubaccountBuyingPower, shallowEqual) || {};
|
||||||
|
|
||||||
const { summary, requestPayload } = useSelector(getTransferInputs, shallowEqual) || {};
|
const { isCctp, summary, requestPayload } = useSelector(getTransferInputs, shallowEqual) || {};
|
||||||
|
|
||||||
const feeSubitems: DetailsItem[] = [];
|
const feeSubitems: DetailsItem[] = [];
|
||||||
|
|
||||||
@ -157,7 +158,7 @@ export const DepositButtonAndReceipt = ({
|
|||||||
</Styled.ExchangeRate>
|
</Styled.ExchangeRate>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
!isCctp && {
|
||||||
key: 'total-fees',
|
key: 'total-fees',
|
||||||
label: <span>{stringGetter({ key: STRING_KEYS.TOTAL_FEES })}</span>,
|
label: <span>{stringGetter({ key: STRING_KEYS.TOTAL_FEES })}</span>,
|
||||||
value: <Output type={OutputType.Fiat} value={totalFees} />,
|
value: <Output type={OutputType.Fiat} value={totalFees} />,
|
||||||
@ -193,7 +194,7 @@ export const DepositButtonAndReceipt = ({
|
|||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
].filter(isTruthy);
|
||||||
|
|
||||||
const isFormValid = !isDisabled && !isEditingSlippage;
|
const isFormValid = !isDisabled && !isEditingSlippage;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user