@daimo/pay 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.es.js +2 -2
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -2170,7 +2170,7 @@ const ResetContainer = styled(motion.div) `
|
|
|
2170
2170
|
`;
|
|
2171
2171
|
|
|
2172
2172
|
var name = "@daimo/pay";
|
|
2173
|
-
var version = "0.3.
|
|
2173
|
+
var version = "0.3.2";
|
|
2174
2174
|
var author = "Daimo";
|
|
2175
2175
|
var homepage = "https://pay.daimo.com";
|
|
2176
2176
|
var license = "BSD-2-Clause license";
|
|
@@ -10654,7 +10654,7 @@ const SelectToken = () => {
|
|
|
10654
10654
|
.then(setPaymentOptions)
|
|
10655
10655
|
.finally(() => setIsLoadingOptions(false));
|
|
10656
10656
|
}, [payerAddress, daimoPayOrder]);
|
|
10657
|
-
return (jsxs(PageContent, { children: [jsx(OrderHeader, { minified: true }), jsx(OptionsList, { requiredSkeletons: 4, isLoading: isLoadingOptions, options: paymentOptions?.map((option) => {
|
|
10657
|
+
return (jsxs(PageContent, { children: [jsx(OrderHeader, { minified: true }), !isLoadingOptions && paymentOptions?.length === 0 && (jsx(ModalContent, { style: { display: "flex", alignItems: "center", justifyContent: "center", paddingTop: 16, paddingBottom: 16 }, children: jsx(ModalH1, { children: "Insufficient balance. Please select an alternative payment method." }) })), jsx(OptionsList, { requiredSkeletons: 4, isLoading: isLoadingOptions, options: paymentOptions?.map((option) => {
|
|
10658
10658
|
const capitalizedChainName = capitalize(getChainName(option.required.token.chainId));
|
|
10659
10659
|
const title = `${getDisplayPrice(option.required)} ${option.required.token.symbol} on ${capitalizedChainName}`;
|
|
10660
10660
|
const subtitle = `Balance: ${getDisplayPrice(option.balance)} ${option.balance.token.symbol}`;
|