From 2600767431da22c9ff85a17fdbc7f7e7352aeb82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=BBegle=C5=84?= Date: Tue, 15 Sep 2020 14:03:39 +0200 Subject: [PATCH] Add error info when fetching taxes (#701) * Add error info * Update changelog --- CHANGELOG.md | 1 + src/taxes/views/CountryList.tsx | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee6a76da0..8fe85c6fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ All notable, unreleased changes to this project will be documented in this file. - Fix not closed address update modal with two confirmations - #699 by @orzechdev - Update schema with PositiveDecimal type - #695 by @AlicjaSzu - Restyle side menu - #697 by @dominik-zeglen +- Add error info when fetching taxes - #701 by @dominik-zeglen ## 2.10.1 diff --git a/src/taxes/views/CountryList.tsx b/src/taxes/views/CountryList.tsx index ff209e950..69b9986ea 100644 --- a/src/taxes/views/CountryList.tsx +++ b/src/taxes/views/CountryList.tsx @@ -35,6 +35,11 @@ export const CountryList: React.FC = () => { defaultMessage: "Successfully fetched tax rates" }) }); + } else { + notify({ + status: "error", + text: intl.formatMessage(commonMessages.somethingWentWrong) + }); } };