@opexa/portal-components 0.0.902 → 0.0.903
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -137,7 +137,9 @@ function PersonalInfo(props) {
|
|
|
137
137
|
}
|
|
138
138
|
}, [account, form]);
|
|
139
139
|
const branchName = props.branchCodes?.find((branch) => branch.code === account?.branchCode);
|
|
140
|
-
const displayBranchName =
|
|
140
|
+
const displayBranchName = branchName
|
|
141
|
+
? `${branchName?.code} - ${branchName?.name}`
|
|
142
|
+
: null;
|
|
141
143
|
return (_jsxs("div", { children: [_jsx("h2", { className: "font-semibold text-sm text-text-secondary-700", children: "Personal Data" }), _jsxs("form", { className: "mt-5 rounded-xl border border-border-secondary bg-bg-primary-alt shadow-xs", onSubmit: form.handleSubmit((data) => {
|
|
142
144
|
updateAccountMutation.mutate({
|
|
143
145
|
realName: data.realName && account?.realName !== data.realName
|