From 707581209d18e19c9247a551544a317035cd2039 Mon Sep 17 00:00:00 2001 From: Riddhiagrawal001 <50551695+Riddhiagrawal001@users.noreply.github.com> Date: Tue, 2 Jan 2024 13:03:08 +0530 Subject: [PATCH] fix: business profile addition modal bugfix (#152) --- .../HyperSwitch/Settings/BusinessMapping/BusinessProfile.res | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/screens/HyperSwitch/Settings/BusinessMapping/BusinessProfile.res b/src/screens/HyperSwitch/Settings/BusinessMapping/BusinessProfile.res index ad54c171b..86933d241 100644 --- a/src/screens/HyperSwitch/Settings/BusinessMapping/BusinessProfile.res +++ b/src/screens/HyperSwitch/Settings/BusinessMapping/BusinessProfile.res @@ -93,7 +93,10 @@ module AddEntryBtn = { buttonSize=Small buttonType={Primary} rightIcon={FontAwesome("plus")} - onClick={_ => setShowModal(_ => true)} + onClick={_ => { + setModalState(_ => Edit) + setShowModal(_ => true) + }} />