@rh-support/troubleshoot 2.2.16 → 2.2.18
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.
|
@@ -60,7 +60,7 @@ export function ContactPhoneNumber() {
|
|
|
60
60
|
useEffect(() => {
|
|
61
61
|
// when canChangeAccountInfo is false OwnerSelector is hidden
|
|
62
62
|
// need to set phone on load here instead of OwnerSelector
|
|
63
|
-
if (!canChangeAccountInfo) {
|
|
63
|
+
if (!canChangeAccountInfo && (isEmpty(phoneCountryCode) || isEmpty(phoneAreaCodePrefixLineNumber))) {
|
|
64
64
|
if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
|
|
65
65
|
setCaseDetails(caseDispatch, {
|
|
66
66
|
phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
|
|
@@ -70,7 +70,7 @@ export function ContactPhoneNumber() {
|
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
72
72
|
const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
|
|
73
|
-
const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
|
|
73
|
+
const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode || '';
|
|
74
74
|
setCaseDetails(caseDispatch, {
|
|
75
75
|
phoneAreaCodePrefixLineNumber: phoneLine,
|
|
76
76
|
phoneCountryCode: countryCode,
|
|
@@ -80,7 +80,7 @@ export function ContactPhoneNumber() {
|
|
|
80
80
|
}
|
|
81
81
|
setLocalFullPhone(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
|
|
82
82
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
83
|
-
}, [
|
|
83
|
+
}, []);
|
|
84
84
|
useEffect(() => {
|
|
85
85
|
if (isEqual(localFullPhone.trim(), '+')) {
|
|
86
86
|
setLocalFullPhone('');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"defaults and supports es6-module",
|
|
134
134
|
"maintained node versions"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "9c40dbdb688e0686f3dac11a8079325d02d70102"
|
|
137
137
|
}
|