Skip to content

Commit 3fbdb4d

Browse files
committed
Fix dupplicate error message issue 24007
1 parent 23d566b commit 3fbdb4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Directory/Model/Currency/Import/CurrencyConverterApi.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ private function convertBatch($data, $currencyFrom, $currenciesTo)
103103
$data[$currencyFrom][$to] = null;
104104
} else {
105105
if (isset($response['error']) && $response['error']) {
106-
$this->_messages[] = $response['error'];
106+
if (!in_array($response['error'], $this->_messages)) {
107+
$this->_messages[] = $response['error'];
108+
}
107109
$data[$currencyFrom][$to] = null;
108110
} else {
109111
$data[$currencyFrom][$to] = $this->_numberFormat(

0 commit comments

Comments
 (0)