@23blocks/react 7.6.11 → 7.6.12
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/index.esm.js +3 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1097,9 +1097,9 @@ function useRewardsBlock() {
|
|
|
1097
1097
|
return rewards;
|
|
1098
1098
|
}
|
|
1099
1099
|
function useSalesBlock() {
|
|
1100
|
-
const
|
|
1101
|
-
if (!
|
|
1102
|
-
return
|
|
1100
|
+
const { sales } = use23Blocks();
|
|
1101
|
+
if (!sales) throw new Error('Sales block not configured. Pass `sales` prop to Blocks23Provider.');
|
|
1102
|
+
return sales;
|
|
1103
1103
|
}
|
|
1104
1104
|
function useWalletBlock() {
|
|
1105
1105
|
const { wallet } = use23Blocks();
|