Skip to content

Commit

Permalink
Fix widget amount
Browse files Browse the repository at this point in the history
CS-5236
  • Loading branch information
MarijaIv committed Mar 22, 2024
1 parent 2d543d5 commit 66b787e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Block/WidgetInitializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]) : [];
}

/**
Expand Down

0 comments on commit 66b787e

Please sign in to comment.