diff --git a/Block/WidgetInitializer.php b/Block/WidgetInitializer.php index af20843..ec4fc6b 100644 --- a/Block/WidgetInitializer.php +++ b/Block/WidgetInitializer.php @@ -174,7 +174,7 @@ private function getConfig(string $actionName): array $config = $this->widgetConfigService->getData($this->_storeManager->getStore()->getId()); - return $config ? array_merge($config, ['amount' => $amount, 'action_name' => $actionName]) : []; + return $config ? array_merge($config, ['amount' => (int)round($amount), 'action_name' => $actionName]) : []; } /**