@razorpay/blade 3.5.2 → 3.5.3

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.
@@ -6475,6 +6475,10 @@ var Alert = function Alert(_ref) {
6475
6475
  isBorderless = _ref$isBorderless === void 0 ? false : _ref$isBorderless,
6476
6476
  actions = _ref.actions;
6477
6477
 
6478
+ if (!(actions !== null && actions !== void 0 && actions.primary) && actions !== null && actions !== void 0 && actions.secondary) {
6479
+ throw new Error('[Blade: Alert]: SecondaryAction is allowed only when PrimaryAction is defined.');
6480
+ }
6481
+
6478
6482
  var _useState = useState(true),
6479
6483
  _useState2 = _slicedToArray(_useState, 2),
6480
6484
  isVisible = _useState2[0],