@ape.swap/bonds-sdk 2.0.4-testseed.29 → 2.0.4-testseed.30
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/dist/main.js +2 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -73921,6 +73921,7 @@ const Bonds = () => {
|
|
|
73921
73921
|
const { data: allBonds } = useBondsList();
|
|
73922
73922
|
const { data: chainFilterOption, setChainFilterOption } = useChainFilterOption();
|
|
73923
73923
|
const { data: tokenPrices } = useTokenPrices();
|
|
73924
|
+
const SDKConfig = useSDKConfig();
|
|
73924
73925
|
useEffect(() => {
|
|
73925
73926
|
//@ts-ignore
|
|
73926
73927
|
if ((bondData === null || bondData === void 0 ? void 0 : bondData.length) === 0 && (tokenPrices === null || tokenPrices === void 0 ? void 0 : tokenPrices.length) > 0 && (allBonds === null || allBonds === void 0 ? void 0 : allBonds.length) > 0) {
|
|
@@ -73934,7 +73935,7 @@ const Bonds = () => {
|
|
|
73934
73935
|
const [filterOption, setFilterOption] = useState('ALL');
|
|
73935
73936
|
const sortedBonds = sortBonds(sortConfig, bondData);
|
|
73936
73937
|
const topTags = useTopTags(sortedBonds);
|
|
73937
|
-
const filterOptions = ['ALL', 'FAVORITES', ...topTags, 'SOLD OUT'];
|
|
73938
|
+
const filterOptions = SDKConfig.referenceId !== 'seedify' ? ['ALL', 'FAVORITES', ...topTags, 'SOLD OUT'] : ['ALL', ...topTags, 'SOLD OUT'];
|
|
73938
73939
|
const billsToRender = useMemo(() => {
|
|
73939
73940
|
let billsToReturn = filterOption === 'SOLD OUT' ? (allBonds !== null && allBonds !== void 0 ? allBonds : []) : (sortedBonds !== null && sortedBonds !== void 0 ? sortedBonds : []);
|
|
73940
73941
|
if (searchQuery) {
|